Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (19.7k points)

I'm trying to use Chrome Drive to execute some of my tests, which are working perfectly with Firefox, but I'm not being able to execute them, I'm already verified the requirements, which are the location of Chrome, Version 12 or higher, and things like that, but anyway still not working correctly, the way to call the driver is:

WebDriver fd = new ChromeDriver();


and then searching some elements, but nothing is working, the error message is:

Exception in thread "main" org.openqa.selenium.WebDriverException: Couldn't locate Chrome. Set System info: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_18' Driver info: driver.version: ChromeDriver at at at at at at at org.openqa.selenium.remote.RemoteWebDriver.( at at at at

Please if anyone can help me would be great.

1 Answer

0 votes
by (62.9k points)
edited by

Use this for Chrome:

Step 1: Download the Chrome driver from this link.

Step 2: Use the TestNG framework.


public void setup() throws Exception


System.setProperty("", "D://Work-Selenium//chromedriver_win32//chromedriver.exe");

driver = new chromeDriver();

baseUrl = "";



Browse Categories