i have started with Selenium Webdriver, but for the following input, i am not able to execute the below code in firefox or chrome driver, can you please advice
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00' System info: host: 'WN7X64-JMMLQ12', ip: '116.202.137.41', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_71' Driver info: driver.version: ChromeDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:139) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:171) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:160) at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117) at Gmail.main(Gmail.java:12) Caused by: java.lang.IllegalStateException: The process has not exited yet therefore no result is available ... at org.apache.commons.exec.DefaultExecuteResultHandler.getException(DefaultExecuteResultHandler.java:74) at org.openqa.selenium.os.UnixProcess.checkForError(UnixProcess.java:165) at org.openqa.selenium.os.CommandLine.checkForError(CommandLine.java:183) at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:165) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:62) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572) ... 7 more
thanks and regards, subash
M
Replied on 03/10/2016
instead of this [color=#FF0000:1hopwrpq]C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe[/color:1hopwrpq] give the path of chromedriver.exe