Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- from selenium.webdriver.chrome.options import Options
- chrome_options = Options()
- extension_path=r'C:\Users\d0351\AppData\Local\Google\Chrome\User Data\Default\Extensions\ophjlpahpchlmihnnnihgmmeilfjmjjc\2.1.0_0.crx'
- executable_path=r'C:\Users\d0351\Downloads\hobby\computer\python\selenium\chromedriver.exe'
- chrome_options.add_extension(extension_path)
- driver = webdriver.Chrome(executable_path=executable_path, chrome_options=chrome_options)
- driver.get('chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html')
Advertisement
Add Comment
Please, Sign In to add comment