Created
June 23, 2024 15:55
-
-
Save dhuynh95/b89ced2cdb53195d448de525b49d5e5c to your computer and use it in GitHub Desktop.
Create a driver that plugs into an existing browser session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = Options() | |
chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222") | |
driver = webdriver.Chrome(options=chrome_options) | |
selenium_driver.driver = driver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment