Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

selenium webdriver options python

#to add options to selenium, put:
from selenium.webdriver.chrome.options import Options
#at the top of your python file

#to use the options, use this code:
options = Options()
options.add_argument("--headless")
options.add_argument("--log-level NONE")

#to pass the arguments to the driver, use this:
driver = webdriver.Chrome(executable_path="path", options=options)
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #selenium #webdriver #options #python
ADD COMMENT
Topic
Name
4+5 =