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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -