0 votes
1 view
in Devops and Agile by (28.1k points)

I'm trying to configure the following code and I'm getting an error. Refer to the attachments. Please help.

1 Answer

0 votes
by (48k points)
edited by

The web driver's address you've specified is the address of the ubuntu instance in AWS.

You've to specify the web driver's address according to the machine in which you run the test. As in, if you're testing it in your default machine (windows/mac os x, etc), you've to specify the path of webdriver accordingly.

 

Example: 

System.setProperty("webdriver.chrome.driver", "D:\\Selenium\\driver\\chromedriver.exe"); 


When trying the test in the instance, you might need a jar file in the instance. So, before you export the jar file to that instance, you need to alter the address of the webdriver accordingly.
 

Example: 

System.setProperty("webdriver.chrome.driver", "/home/ubuntu/chromedriver"; 

Conclusion: Specify the path of the web driver according to the system that you're testing.

For more information, check out this selenium tutorial.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...