Running in Chrome is not working

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Running in Chrome is not working

bswjitsamal
Hi,
 
I have downloaded the chrome driver in a folder then followed the tutorial for chrome path, still there is an error. It is not allowing to run on Chrome.

System.setProperty("webdriver.chrome.driver", "C:/Users/Biswajit/Downloads/chromedriver_win32_2.1");

The error is

FAILED CONFIGURATION: @BeforeMethod lunchbrowser
java.lang.IllegalStateException: The driver executable is a directory: C:\Users\Biswajit\Downloads\chromedriver_win32_2.1


How do I set the path for chrome so that it can run?
Reply | Threaded
Open this post in threaded view
|

Re: Running in Chrome is not working

puneetha
if(browser.equalsIgnoreCase("chrome"))
                {
                        System.setProperty("webdriver.chrome.driver", "D:\\puneetha_software\\chromedriver_win32_2.1\\chromedriver.exe");
                        driver = new ChromeDriver();
                }
Reply | Threaded
Open this post in threaded view
|

Re: Running in Chrome is not working

puneetha
In reply to this post by bswjitsamal
Please consider path till exe file...