Display results as :

Rechercher Advanced Search

Latest topics
» Regarding Alert Interface
Fri Feb 24, 2017 2:00 pm by karthikeyakumar

» Geting issues in identifying the elsements in webdriver
Fri Feb 17, 2017 4:41 pm by janbaskt

» WebDriver - why not to use a singlton for it?
Fri Feb 17, 2017 4:40 pm by janbaskt

» WebDriver session when using testng annotation to invoke driver instance
Fri Feb 17, 2017 4:39 pm by janbaskt

» Selenium fails to launch Chrome
Fri Feb 17, 2017 4:39 pm by janbaskt

» why do i get this error
Fri Feb 17, 2017 4:38 pm by janbaskt

» Selenium Tutorial
Thu Feb 16, 2017 5:21 pm by Rahul

» When to use Selenium IDE, RC and WebDriver
Mon Feb 13, 2017 2:35 pm by azharuddin

» How to integrate selenium with ZAPI-Zephyr
Sat Feb 11, 2017 2:25 am by gseera002c


How to use User Extention in Selenium RC and TestNG

View previous topic View next topic Go down

How to use User Extention in Selenium RC and TestNG

Post by manvya on Wed Aug 31, 2011 2:13 pm


I wanted to use the ToolTip text capture in my project. So am planning to use the User Extenstion :


I did following steps as per the Forum suggest

1. Open the Server.jar file.

2. Replace the user-extention with ToolTip JS file.( instead of this , i just copy the code from tool_tipsuser-extenstions.js to the user-extention.js file)

3.Save the changes and exit the jar file.

4. Included this jar file in my Lib file.

And in my code, I replaced my setup cod eas below:(as suggested from the advisor:

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

But after this, I am not able to use the xtended methods when i try to use command like

selenium .getElementToolTip

Am using Eclipse and TestNG for developing the code.

So i would like to know whether the user-extention functions will be able to use after creating the selenium instance?

or should we run the server as "java -jar selenium-server.jar -userExtensions user-extensions.js" ?

Also is it possible to run the selenium server directly from the code by including the user-extention than the command line? Am starting the server from from the code. So am not sure how we enable the user-extention.js.

Thanks in advance,



Posts : 3
Join date : 2011-08-31

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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