Skip to content
Advertisement

Selenium Chromedriver error chome not reachable but driver get works

I am trying to get the page content from a webpage, with the use of selenium and chromedriver. I am using an Ubuntu 18.04 subsystem on Windows. The driver.get method works, but getting the page content does not. Here is my code:

JavaScript

Here is my error:

JavaScript

Don’t really know what to do anymore, I tried changing chromedriver versions, maybe the problem is using a subsystem but I am not sure.

Advertisement

Answer

Try with : executable_path with “absolute_path..upto..driver-EXE” not only a directory.

for example:

JavaScript

I have already tested using Pycharm IDE same above code working fine.

Thanks… Enjoy coding…enter image description here

Advertisement