How to run a selenium-server-standalone?

0 votes

I'm trying to run selenium server, but I am getting errors:

rond-macpro:selenium eladb$ java -Dwebdriver.chrome.driver=./chromedriver -r selenium-server-standalone-2.44.0.jar
Unrecognized option: -r
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

and without -r (what is it anyway?)

rond-macpro:selenium eladb$  java -Dwebdriver.chrome.driver=./chromedriver  selenium-server-standalone-2.44.0.jar
Error: Could not find or load main class selenium-server-standalone-2.44.0.jar

how should I start the server?

how do I set a non-default port to listen to?

Sep 3, 2018 in Selenium by Martin
• 4,330 points
1,760 views

1 answer to this question.

0 votes

java -jar seleniumjar.jar -Dwebdriver.chrome.driver=./chromedriver

If you want to specify the port then do:

java -jar seleniumjar.version.jar -Dwebdriver.chrome.driver=./chromedriver -port 4545

As of 3.8.1, specifying the driver is no longer necessary:

java -jar seleniumjar.jar
answered Sep 3, 2018 by Meci Matt
• 9,460 points

Related Questions In Selenium

0 votes
0 answers

How to run Selenium standalone server 2 on Windows XP?

Could you please help me with running ...READ MORE

Jul 22, 2019 in Selenium by Vaishnavi
• 1,180 points
257 views
0 votes
1 answer

How to upload a file to a server using Selenium Webdriver?

Hi Jigyasa, following piece of code will ...READ MORE

answered May 21, 2019 in Selenium by Anvi
• 14,090 points
110 views
0 votes
1 answer

How to run a group of test cases using TestNG in Selenium Webdriver?

Hey Kajal, TestNG allows you to perform ordered ...READ MORE

answered Jun 12, 2019 in Selenium by Abha
• 27,930 points
1,067 views
0 votes
1 answer

How to run a test case on remote webdriver using ruby selenium?

Hey Dhanush, you can follow the below ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 27,930 points
250 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,510 points
3,477 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

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

answered Aug 31 in Selenium by Sri
• 2,970 points
4,487 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,890 points
2,568 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 2 in Selenium by Sri
• 2,970 points
2,803 views
0 votes
1 answer
0 votes
1 answer