Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python webdriver open with chrome extension

import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options


executable_path = "path_to_webdriver"
os.environ["webdriver.chrome.driver"] = executable_path

chrome_options = Options()
chrome_options.add_extension('path_to_extension')

driver = webdriver.Chrome(executable_path=executable_path, chrome_options=chrome_options)
driver.get("http://stackoverflow.com")
driver.quit()
Comment

PREVIOUS NEXT
Code Example
Python :: extract text regex python 
Python :: cv2 yellow color range 
Python :: pynput left click command 
Python :: chart-studio python install 
Python :: python run a system command 
Python :: setting a condition for perfect square in python 
Python :: get last day of month python 
Python :: run python file in interactive mode 
Python :: python no such file python3 
Python :: os listdir sort by date 
Python :: list to excel python 
Python :: flask mail python 
Python :: django rest framework default_authentication_classes 
Python :: python string to datetime 
Python :: append file to list python 
Python :: request.body django 
Python :: unlimited keyword arguments python 
Python :: display video in jupyter notebook 
Python :: encryption python 
Python :: generate gif py 
Python :: swapping array location in python 
Python :: flask render_template 
Python :: how to keep a webdriver tab open 
Python :: localhost server in Python 
Python :: add whitespaces between char python 
Python :: python multithreading tutorials 
Python :: pipilika search engine 
Python :: python check folder 
Python :: code to find the shape of the 2d list in python 
Python :: how to count special values in data in python 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =