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