Share
Go down
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

New user extension regarding tooltip and image verification.

on Tue Sep 22, 2009 1:02 pm
Hi Guys,

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 :
mediafire.com file/dykj2dzt2qm/Tooltip&Image_userExtenstion.rar


Enjoy it guys


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

Re: New user extension regarding tooltip and image verification.

on 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
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: New user extension regarding tooltip and image verification.

on 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
nellorekrishnakumar
Active particpant
Active particpant
Posts : 19
Join date : 2009-08-14
Age : 32
Location : HYDERABAD

Re: New user extension regarding tooltip and image verification.

on 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
kmahata@gmail.com
Active particpant
Active particpant
Posts : 10
Join date : 2009-11-06

Re: New user extension regarding tooltip and image verification.

on 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
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: New user extension regarding tooltip and image verification.

on 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
kmahata@gmail.com
Active particpant
Active particpant
Posts : 10
Join date : 2009-11-06

Re: New user extension regarding tooltip and image verification.

on 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/
bhargav
Posts : 4
Join date : 2009-11-13

Re: New user extension regarding tooltip and image verification.

on 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.
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: New user extension regarding tooltip and image verification.

on 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
bhargav
Posts : 4
Join date : 2009-11-13

Re: New user extension regarding tooltip and image verification.

on 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..
bhargav
Posts : 4
Join date : 2009-11-13

Re: New user extension regarding tooltip and image verification.

on 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 .
bhargav
Posts : 4
Join date : 2009-11-13

Re: New user extension regarding tooltip and image verification.

on 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..
lakshmi prasanna
Posts : 2
Join date : 2014-05-17

Re: New user extension regarding tooltip and image verification.

on 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

Re: New user extension regarding tooltip and image verification.

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