Python Forum

Full Version: Selenium- Can't access "Chrome is being controlled by automated test software"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options


options = Options()
options.add_experimental_option("detach", True)


driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()), options=options)
driver.get("amazon.com")
driver.maximize_window()