1

I have created multiple scripts using Selenium IDE. I can run this script only in Firefox using the extension. I want to run these scripts on different browsers like Chrome/IE using node.js. I know I can run it via java commands, but is there any way I can run it via nodejs?

1 Answer 1

1

Running IDE test Suites can be trigged from the command line using the selenium jar file. You can launch any browser from that command line (not just firefox).

Webdriver supports javascript/node: http://www.seleniumhq.org/download/ http://seleniumhq.github.io/selenium/docs/api/javascript/index.html

But to run IDE tests in other browsers look at the documentation here: https://wiki.mozilla.org/Running_IDE_scripts_with_Selenium_RC

 java 
    -jar selenium-server.jar 
    -userExtensions user-extensions.js
    -htmlSuite 
       "*chrome" 
       "<base URL>" 
       "<Selenium test suite file>" 
       "<results log file>"  
   -timeout nnnn

Specifically look at the first paramaeter after -htmlSuite:

1st parameter is the browser to run the script in. In RC 1.0.1 *chrome = Firefox, *iehta = Internet Explorer. (options in RC 1.0.2 are expected to be *firefox and *iexplore, respectively)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.