Unable to run Selenium / WebDriver scripts for Chrome,Simulator while connected with LAN (For Mac)

159 views
Skip to first unread message

Siddharth Tiwari

unread,
Feb 22, 2018, 10:06:02 PM2/22/18
to Selenium Users

Unable to run Selenium / WebDriver scripts for Chrome, IOS Simulator while connected with LAN (For MAC System), It is working in WIFI & in Windows


Mac: 10.11.6
Chrome: 60.0
Chrome Driver: 2.32
Selenium 2.53

I have tried with Chrome - V64 and ChromeDriver: 2.35 and Selenium 3.8

-->

Browser Version:

Expected Behavior - Chrome should launch and execute the command (driver.get(URL))
Actual Behavior - Chrome don't launch when i connect my MAC with LAN, however it works fine while connected with WIFI and in Windows machine also
Steps to reproduce -
WebDriver driver;
String exePath = "Path to Chromedriver";
System.setProperty("webdriver.chrome.driver", exePath);
driver = new ChromeDriver();
driver.get(URL);

Error message:
Starting ChromeDriver 2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061) on port 6945
Only local connections are allowed.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created exception
from disconnected: unable to connect to renderer
(Session info: chrome=60.0.3112.113)
(Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.11.6 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.36 seconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'
System info: host: '01hw382197', ip: '172.25.155.171', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '9.0.4'
Driver info: org.openqa.selenium.chrome.ChromeDriver
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:144)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:170)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:159)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:116)
at dataAndConfig.Sample.main(Sample.java:31)





anwesana kanungo

unread,
Feb 23, 2018, 5:44:20 AM2/23/18
to Selenium Users
Reply all
Reply to author
Forward
0 new messages