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
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

Problems with using User-Extension file in Selenium RC Empty Problems with using User-Extension file in Selenium RC

Mon Feb 13, 2012 11:06 pm
I am trying to test some web applications with Selenium RC. My company uses IE, so IDE is not the best option. I have set up Selenium RC and have run successful scripts from the command without using my user extension file. I was hoping to use some of the custom functions I created in my user-extensions.js file. When I run the script from the command I get an IE Script Error saying 'testCase' is undefined.

I am running this:

java -jar selenium-server-standalone-2.15.0.jar -userExtensions "user-extension filepath" -htmlSuite "*iexplore" "my url" "test suite filepath" "results filepath"

Anyone else have this problem, or know if it is actually possible to run this from the command? Any advice would be great!
avatar
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO

Problems with using User-Extension file in Selenium RC Empty Re: Problems with using User-Extension file in Selenium RC

Tue Feb 14, 2012 1:13 am
I answered my own question and got it to work. If anyone cares to know, I was using the custom while statement that I found online in my user-extension file. There is a testCase object that is not defined(hence the error). When I commented that out, the script ran fine.
Back to top
Permissions in this forum:
You cannot reply to topics in this forum