Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python selenium chrome webdriver giving me data; page

I've been working with the following code, trying to introduce myself to selenium. When it runs, the chrome browser opens, but the page is blank, with no source code a far as I can tell, and 'data;' in the address bar. Any information on why this is happening would be greatly appreciated.

from selenium import webdriver

browser = webdriver.Chrome(service_args = ['--ignore-ssl-errors=true', '--ssl-protocol=TLSv1'])

url = 'https://www.google.com/'
browser.get(url) 

I have also tried it without the service_args and tried it specifying the driver path and both, but get the same result each time

like image 809
asheets Avatar asked Sep 16 '25 12:09

asheets


1 Answers

The most possibility is your browser not compatible with the webdriver. Please confirm your browser version and webdriver version.

My chrome version is 60 and chromerdriver is chromedriver_2.30.exe

You can find compatible version from here

like image 186
yong Avatar answered Sep 18 '25 10:09

yong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!