| || |
How to load and use ui-elelment with Selenium RC
We have created lots of test using Selenium IDE. We also have ui-elemets js file where we have all the required element defined with xpath.
Now we are moving to RC (JAVA)and wondering if there is a way we can load ui-element file and use the elements from there instead of directly putting xpath in the script.
I tried starting server with -userExtention and provided the file name. e.g. java -jar selenium-server.jar -userExtensions C:\user-extensions.js
Sever started fine but using element in the tests not working.
Also tried using selenium.setExtensionJs("C:/user-extensions.js"); in setup but so far no luck.
If anyone knows how to make this work, please let me know. Thanks in advance.