python - remove arguments passed to chrome by selenium / chromedriver -
i'm using selenium python , chromium / chromedriver. want remove switches passed chrome (e.g. --full-memory-crash-report), far find out how add further switches.
my current setup:
from selenium import webdriver driver = webdriver.chrome(executable_path="/path/to/chromedriver") driver.get(someurl)
as far understand can used add arguments:
from selenium.webdriver.chrome.options import options chrome_options = options() chrome_options.add_argument("--some-switch") driver = webdriver.chrome(chrome_options=chrome_options)
so, how rid of default arguments or wipe default arguments clean , pass custom list?
use excludeswitches chrome option. see: https://sites.google.com/a/chromium.org/chromedriver/capabilities
Comments
Post a Comment