Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.0k views
by Contributing Tester (92 points)
edited by

I am trying to start up a windows node using the following command

java -role node -nodeConfig <%=@selenium_node %> -Dwebdriver.firefox.profile <%=@firefox_profile_directory %> -jar <%=@selenium_jar %>

Tried this too

java -role node -Dwebdriver.firefox.profile <%=@firefox_profile_directory %> -nodeConfig <%=@selenium_node %> -jar <%=@selenium_jar %>

or

java -Dwebdriver.firefox.profile <%=@firefox_profile_directory %> -jar <%=@selenium_jar %> -role node -nodeConfig <%=@selenium_node %>

Error--

Unrecognized option: -role Error: Could not create the Java Virtual
Machine. Error: A fatal exception has occurred. The program will exit.

Could not find or load main class C:...\firefox\profile 

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

Your arguments are for your jar file and not for Java.

So your bash command should look like below.

java -jar <%=@selenium_jar %> -role node -nodeConfig <%=@selenium_node %> -Dwebdriver.firefox.profile <%=@firefox_profile_directory %>

 Hope that helps!


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...