org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.


You are watching: Error communicating with the remote browser.it may have died

System info: host: "Admin-PC", ip: "192.168.122.1", os.name: "Windows 7", os.arch: "x86", os.version: "6.1", java.version: "1.8.0_71"
Capabilities <{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=C:\Users\Admin\AppData\Local\Temp\scoped_dir6868_11829}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=54.0.2840.99, platform=XP, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}>
at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:945)
System info: host: "Admin-PC", ip: "192.168.122.1", os.name: "Windows 7", os.arch: "x86", os.version: "6.1", java.version: "1.8.0_71"
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:165)
*
commentedNov 29, 2016by stbadminThe go-to Tester(181 points)
System.setProperty("webdriver.chrome.driver", getPath()+ "/src//test//resources//webdriver/chromedriver.exe");Webdriver driver = new ChromeDriver(); // Maximize windowdriver.manage().window().maximize();// Delete cookiesdriver.manage().deleteAllCookies();// open application URLdriver.navigate().to(applicationUrl);

Your answer

Your name to display (optional):
Email me at this address if my answer is selected or commented on:Email me if my answer is selected or commented on

*
answeredDec 1, 2016by stbadminThe go-to Tester(181 points)selectedDec 14, 2017by mayur

I suspect the path "/src//test//resources//webdriver/chromedriver.exe" is not more generic. Kindly move your chromedriver.exe file to more generic location, like C:/drivers/ also make sure that you maintain the same path on other computers while executing.

Hope that helps.


*




See more: Why Wont My Samsung Galaxy S4 Charge, Phone Not Turning On, Not Charging

selenium-webdriverjavaseleniumsoftware-testinginterview-questionstest-automationselenium-javatestngmanual-testingmaveneclipsecareer-advicecucumberjenkinspage-objectsapijmeterselenium-c#appiumperformance-testingproject-managementselenium-gridpythontestcompleteselenium-pythonthis-vs-thatsoap-uimobile-device-testingvisual-studiotoolsetl-testingapi-testingbddtester-confessionqualitytestinggruntnode-jsphantomjsmac-os-xgitjunitjavascriptandroidbrowserstackgherkinxpathmochaload-testingdb-testingoutsourcingnunitubuntujunit4firefoxfiddlertest-casesprotractor-jsmongodbselenium-idedata-driven-testinggradlelinuxchromealpha-testingmobile-device-automationtest-datarobot-frameworktutorialspytestmockitocodeceptionspecflowslenium-grid-extrasintellijtestingstudentskatalontoscatest-case-writinggrunt-loop-mochatddportal-faqselenium-serverreportngpostmanjunit5selenidesoapwcfqtpqueryautoit#software#testing#softwaretestingsoftware-traineepenetration-testingreactjskendo-componentsatutestrecorderistqbdesktop-automation