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,320 points
1,274 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
140 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,010 points
81 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,800 points
489 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,800 points
121 views
0 votes
1 answer

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
2,219 views
0 votes
1 answer
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,870 points
1,829 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
1,822 views
0 votes
1 answer
0 votes
1 answer