Consider:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
options.add_argument("start-maximized")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
print("Hello, World!")
I am running Python 3.10 on Linux Ubuntu.
I was trying to play around with Selenium. However, any code that I write after defining the webdriver does not work.
It seems that the interpreter gets stuck after defining the webdriver. It opens the webdriver, but it only shows "data:," and nothing else and won't respond to any code written after.