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,050 points
280 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,400 points
48 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,030 points
66 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
438 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
51 views
0 votes
1 answer

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

You can explore options like HTMLUnit Driver ...READ MORE

answered Mar 23, 2018 in Selenium by nsv999
• 5,030 points
162 views
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.