I'm trying to connect Selenium to an existing chrome driver I execute this command in cmd "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9878
but when I try to connect to this browser it stuck at webdriver.Chrome(chrome_driver, options=chrome_options)
even though it was working.
My code :
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9878")
chrome_driver = "chromedriver.exe"
driver = webdriver.Chrome(chrome_driver, options=chrome_options) # stuck here
driver.get("https://www.google.com/")