It looks like after opening the browser, Selenium cannot move on for some reasons I can't figure out. No error was ever displayed.
Here is my simple code:
import selenium from selenium import webdriver from selenium.webdriver.common.keys import Keys # Using Chrome to access web browser = webdriver.Chrome(executable_path = "C:\Program Files\Google\Chrome\Application\chrome.exe") print ("done") # Open YouTube website browser.get("https://www.youtube.com/")
The browser opens just fine, but the print("done") statement is never executed. (In the terminal the word "done" was never printed. So, it infers that the selenium has never finished executing the command to open the browser even though the browser has opened, and I have waited for several minutes.
Thanks in advance to our wonderful StackOverflow community!