Running a selenium-server-standalone

0 votes

I was trying to run selenium server but was showing an error:

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

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 can I start the server and set a non-default port to listen

Apr 9, 2018 in Selenium by Johnathon
• 9,080 points
384 views

1 answer to this question.

0 votes

Below codes will help you:

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

for specifying the port

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

for 3.8.1, specifying the driver is no longer necessary:

java -jar seleniumjar.jar
answered Apr 9, 2018 by KillerMiller

Related Questions In Selenium

0 votes
1 answer

How to run a selenium-server-standalone?

java -jar seleniumjar.jar -Dwebdriver.chrome.driver=./chromedriver If you want to ...READ MORE

answered Sep 3, 2018 in Selenium by Meci Matt
• 9,420 points
144 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
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,090 points
549 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,130 points
882 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,130 points
546 views
0 votes
2 answers
0 votes
1 answer