Unable to interact with selenium webdriver after initializing it with the new service method [Python]
Unable to interact with selenium webdriver after initializing it with the new service method [Python] Question: I’m trying to initialize a chrome webdriver with a custom user profile using the following code: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service options = webdriver.ChromeOptions() options.add_experimental_option("detach", True) options.add_argument("–start-maximized") options.add_argument(r’user-data-dir=C:Users{User}AppDataLocalGoogleChromeUser DataProfile XY’) service = …