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,090 points
473 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,460 points
888 views
0 votes
1 answer

How are 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver' different from each other?

Okay, your understanding of "Selenium Server" & ...READ MORE

answered Apr 6, 2018 in Selenium by nsv999
• 5,510 points
1,083 views
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,510 points
1,535 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,850 points
1,484 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,850 points
1,259 views
0 votes
2 answers

Can we run selenium tests (Firefox) on WebDriver without a GUI?

Hi Shubham, you can use headless browsers ...READ MORE

answered Aug 22, 2019 in Selenium by Abha
• 27,740 points
330 views
0 votes
1 answer