Unable to run the selenium script while connected to the LAN, however it works fine when connected to the WIFI. I have kept all the proxy settings same. Below is the code:
String exePath = "/usr/local/bin/chromedriver";
System.setProperty("webdriver.chrome.driver", exePath);
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
OS: Mac 10.11.6 Selenium: 2.53 Also tried with 3.8.1 ChromeDriver: 2.33.2 Chrome: V60. Eclipse Oxygen.
Getting Below mentioned error message:
Starting ChromeDriver 2.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2) on port 21777
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.33.506106 (8a06c39c4582fbfbab6966dbb1c38a9173bfb1a2),platform=Mac OS X 10.11.6 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 2.65 seconds
Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46'
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
The error says it all :
The main reason is the binaries you are using are incompatible as :
So there is a time gap of almost 2 years between the release of Selenium Client v2.53.1 and ChromeDriver v2.33
Solution
Update
As you mentioned you are unable to run the script while connected to the LAN but works fine when connected to the WIFI you need to ensure the following :