Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

New user extension regarding tooltip and image verification. Empty New user extension regarding tooltip and image verification.

Tue Sep 22, 2009 1:02 pm
Hi Guys, New user extension regarding tooltip and image verification. Icon_basketball

Good news for you. I have developed some more functions in extenstion for tooltip and image verification which is not possible to do with relgular selenium
command. This user extension is developed to provide extra
functionality to users of selenium. It contains both store and assert
commands.

Note: This user extension is working fine in IDE but I have not tested in RC.

This user extension contains the following functions:

1. StoreElementTooltip :

This function will get tooltip of the specified element and store that into the variable.
This function is useful where user wants to perform operation on tool tip.

Sample Commands:

* [info] Executing: |storeElementTooltip | LocatorNameOrId | variableName |
* [info] Executing: |type | Locator| ${variableName} |
* [info] Executing: |assertElementTooltip | LocatorNameOrId | Text of tool tip to verify |


2. StoreImagePath :

This function will get source path of the specified icon/image on web page and store that
into the variable. This function is useful where user wants to get source path of icon
tip.

Sample Commands:

* [info] Executing: |storeImagePath | LocatorNameOrId | variableName |
* [info] Executing: |type | Locator | ${variableName} |
* [info] Executing: |assertImagePath | LocatorNameOrId| server image path expected|



3. StoreImageType :

This function will get icon/image file type appear on web page and store that
into the variable. This function is useful where user wants to get image/icon type.

Sample Commands:

# [info] Executing: |storeImageType | LocatorNameOrId | variableName |
# [info] Executing: |type | Locator | ${variableName} |
# [info] Executing: |assertImageType | LocatorNameOrId | Expected value(gif)




Check out all this stuff at following link :
http://www.mediafire.com/file/dykj2dzt2qm/Tooltip&Image_userExtenstion.rar


New user extension regarding tooltip and image verification. Icon_basketball Enjoy it guys New user extension regarding tooltip and image verification. Lol


Last edited by Adviser on Sat Nov 27, 2010 11:45 am; edited 1 time in total
avatar
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 39
Location : HYDERABAD

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Wed Sep 23, 2009 12:52 pm
Hi Adviser,

Could u please update me on usage of StoreElementTooltip("XXX","XXX");
In Selenium RC.
I have followed below step as told in forum and OpenQA Site.

proc = new HttpCommandProcessor("localhost", 4444, "*chrome", "Test url site");
selenium = new DefaultSelenium(proc);
selenium.start();

and

To run comand :

String inputParams[] = {"locator id","variable"};
proc.doCommand("storeElementTooltip()",inputParams );


To run command from command prompt I used below step.
java -jar selenium-server.jar -userExtensions user-extensions.js

Waiting for ur assistance.
Thanks,
Nellore Krishna Kumar
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Wed Sep 23, 2009 1:10 pm
Hi,

I have not tested and used these command in Rc. But is working similar like other store function . You have to use like this:

Sting variableName = selenium.getElementToolTip(id of locator);

This is syntax of java, convert into your programming language.

bye
avatar
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 39
Location : HYDERABAD

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Wed Sep 23, 2009 2:54 pm
Hi Advisor,

I followed all step given in that.Please check below url:

http://seleniumhq.org/docs/08_user_extensions.html


Thanks,
Nellore Krishna Kumar
avatar
kmahata@gmail.com
Active particpant
Active particpant
Posts : 10
Join date : 2009-11-06

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Sat Nov 07, 2009 1:52 pm
Hi Adviser,

I am becoming a fan of yours Smile . I had a query related to this tool tip extension. Whenever there is a bubble tool tip it fails. It is not able to recognize the locator Sad Any help would be highly appreciated
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Sat Nov 07, 2009 3:33 pm
hi,

Thanks for your concerned. This tool tip extension work for only simple tool tip which shown text only when mouse over it. But what type of bubble tool tip you are talking about is different than this.

I have to look over it. Can you provide a sample link which contain this type of tooltip?

Bye
avatar
kmahata@gmail.com
Active particpant
Active particpant
Posts : 10
Join date : 2009-11-06

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Sat Nov 07, 2009 8:11 pm
Hello,

In the link provided u wil find A bubble type of tool tip.

http://trentrichardson.com/examples/csstooltips/
avatar
bhargav
Posts : 4
Join date : 2009-11-13

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Fri Nov 13, 2009 5:09 pm
Hi ,

I am not able to use this storeElementTooltip ,type,assertElementTooltip..

Can you please give an example with the HTML code also regarding the locators etc..about how to use this comamnds .
Thanks.
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Mon Nov 16, 2009 11:14 am
hi,

Use the foll0wing command on this site as example
http://m.in.yahoo.com/?p=us


Commands:

[info] Executing: |storeElementTooltip | //a[@id='yui-tmp-3']/span[2] | y |
[info] Executing: |type | p_13838465-p | ${y} |
[info] Executing: |assertElementTooltip | //a[@id='yui-tmp-3']/span[2] | Yahoo! Mail |

Hope this will help you. Best of luck.

Bye
avatar
bhargav
Posts : 4
Join date : 2009-11-13

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Mon Nov 16, 2009 12:38 pm
The element locator mentioned in the above example for http://m.in.yahoo.com/?p=us site is not giving the correct value.

You used the element locator as 'a[@id='yui-tmp-3']/span[2]' , which when tried in xpather & click eval in the xpather ,its giving 0 matches.

Or can u give an example for www.google.co.in site .

Also , i Have one doubt regarding what do u mean by LocatornameOrId & Locator in the below , which are marked in Red & Bold.
Sample Commands:

* [info] Executing: |storeImagePath | LocatorNameOrId | variableName |
* [info] Executing: |type | Locator | ${variableName} |
* [info] Executing: |assertImagePath | LocatorNameOrId| server image path expected|


Thanks..
avatar
bhargav
Posts : 4
Join date : 2009-11-13

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Mon Nov 16, 2009 1:03 pm
Can u gimme ur gmail contact ID so as to chat with you & clarify my doubts regarding building up of this userextension & also how to use this .
avatar
bhargav
Posts : 4
Join date : 2009-11-13

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Mon Nov 16, 2009 1:16 pm
Sorry for these many posts..I was able to use this extension successfully..

But i want to know how u have developed this extension..
avatar
lakshmi prasanna
Posts : 2
Join date : 2014-05-17

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Sat May 17, 2014 12:48 am
I am new to Selenium. Can someone please help me how to use this extension. I am using selenium RC. i need to verify the tool tip on mouse over.

HTML for this tool tip generated is 

Sponsored content

New user extension regarding tooltip and image verification. Empty Re: New user extension regarding tooltip and image verification.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum