A
A
adrenalinruslan2019-06-12 15:04:28
Python
adrenalinruslan, 2019-06-12 15:04:28

Is there some kind of warning due to ChromeOptions?

Why is there an error? help me please)

chrome_options = webdriver.ChromeOptions() 
chrome_options.add_argument('--disable-extensions')

executable_path = os.path.dirname(os.path.abspath(__file__)) + '\chromedriver.exe'

browser = webdriver.Chrome(executable_path=executable_path, chrome_options=chrome_options)
browser.get('http://2ip.ru')

The error itself:
DeprecationWarning: use options instead of chrome_options
  browser = webdriver.Chrome(executable_path=executable_path, chrome_options=chr
ome_options)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
adrenalinruslan, 2019-06-12
@adrenalinruslan

The issue seems to be resolved (Well, the warning is gone, I don’t know if it’s right or not)

browser = webdriver.Chrome(options=chrome_options, executable_path=executable_path)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question