[py] Deprecate find_element(s)_by_* calls
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/SeleniumHQ/selenium
Cr-Mirrored-Commit: 8b2bab56187b026efa5b91dda1a3d4e06f36c451
diff --git a/conftest.py b/conftest.py
index 1c11ddb..5090310 100644
--- a/conftest.py
+++ b/conftest.py
@@ -120,6 +120,7 @@
options = get_options(driver_class, request.config)
if driver_class == 'ChromiumEdge':
options = get_options(driver_class, request.config)
+ kwargs.update({'is_legacy': False})
if driver_path is not None:
kwargs['executable_path'] = driver_path
if options is not None:
@@ -135,12 +136,10 @@
browser_args = config.option.args
options = None
- if driver_class == 'ChromiumEdge':
- options = getattr(webdriver, 'EdgeOptions')()
- options.use_chromium = True
-
if browser_path or browser_args:
- if not options:
+ if driver_class == 'ChromiumEdge':
+ options = getattr(webdriver, 'EdgeOptions')(False)
+ else:
options = getattr(webdriver, '{}Options'.format(driver_class))()
if driver_class == 'WebKitGTK':
options.overlay_scrollbars_enabled = False