Executing Selenium test script from command line

0 votes
I created a test case using Selenium IDE. I want to use the command line to execute this exported HTML file.

How to do this?
May 30, 2018 in Selenium by 93.lynn
• 1,600 points
3,410 views

1 answer to this question.

0 votes

You will require Selenium RC which you can download from the below link:
http://seleniumhq.org/download/ 
 

Also, download Java 1.7 or above and follow the below steps:

1) Install Java
2) Setup Selenium RC.
3) Open cmd.exe window and go to the directory having the Selenium Server (selenium-remote-control-1.0.1\selenium-server-1.0.1)
4) Run the command as shown below:

java -jar selenium-server.jar -htmlSuite "*firefox" "http://10.8.100.106" "C:\test.html" "C:\testresults.html"

This will run your test script in Firefox and write the results in the HTML file. However, You will need to change the "http://10.8.100.106" argument to your own server ( localhost / 127.0.0.0)

answered May 30, 2018 by Meci Matt
• 9,460 points

Related Questions In Selenium

0 votes
1 answer

How to run Selenium test case file from command line?

You’ll need Selenium RC for this: http://seleniumhq.org/download/  And the ...READ MORE

answered Apr 23, 2018 in Selenium by Vardy
• 2,360 points
14,183 views
0 votes
1 answer

Reading data from Excel in my Selenium test

Log4j problems are usually thrown because of ...READ MORE

answered Apr 6, 2018 in Selenium by nsv999
• 5,500 points
10,259 views
0 votes
1 answer

Export test cases from Selenium IDE to Selenium webdriver

Open the Test case in Selenium IDE ...READ MORE

answered Feb 12, 2019 in Selenium by Vascoo
2,377 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
12,616 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
8,572 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
6,629 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,518 views
0 votes
1 answer

Login page test script using selenium and java in Eclipse IDE

Here is an example to login to ...READ MORE

answered Apr 23, 2018 in Selenium by Meci Matt
• 9,460 points
13,237 views
0 votes
1 answer

Executing Test Case in Java

Below is a code for Facebook login ...READ MORE

answered Apr 27, 2018 in Selenium by Meci Matt
• 9,460 points
537 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP