Skip to content

Commit 61e3476

Browse files
carlosgcamposAutomatedTester
authored andcommitted
[py] disable overlay scrollbars when running tests with WebKitGTK+
Some tests scroll to elements that keep them at the bottom of the browser window. When attempting to click on them, the overlay scrollbar receives the click instead.
1 parent 3cd7889 commit 61e3476

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

py/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ def fin():
106106
capabilities = DesiredCapabilities.FIREFOX.copy()
107107
capabilities['marionette'] = False
108108
kwargs.update({'desired_capabilities': capabilities})
109+
if driver_class == 'WebKitGTK':
110+
additional_args = {}
111+
options = webdriver.WebKitGTKOptions()
112+
options.overlay_scrollbars_enabled = False
113+
additional_args['options'] = options
114+
kwargs.update(additional_args)
109115
driver_instance = getattr(webdriver, driver_class)(**kwargs)
110116
yield driver_instance
111117
if MarkEvaluator(request.node, 'no_driver_after_test').istrue():

0 commit comments

Comments
 (0)