Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98894

WebDriver opens Chrome with data:, stuck on address bar (Python Selenium)

$
0
0

Trying to open YouTube (or any other website) using Selenium in Python. When I run the program, a blank browser window pops up, with phrase data:, in the address bar, and it stays right there until timeout. What should I do to open a web page correctly?


Additional information:

  • Chrome: Version 80.0.3987.87 (64-bit)
  • ChromeDriver: Version 80.0.3987.16 (latest, said to be compatible with version of my Chrome)
  • I did not place chromedriver.exe in the same directory with Chrome.
  • Operating System: Windows 10

Sample Code:

from selenium import webdriver

driver = webdriver.Chrome(executable_path = r"C:\explicit\path\to\chromedriver.exe")
driver.get("https://www.youtube.com")

Screenshot: blank window with data;, on address bar


Viewing all articles
Browse latest Browse all 98894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>