Skip to content

Commit 94d242b

Browse files
committed
[py] Use XWayland for internal Python Firefox tests
1 parent ae2caf2 commit 94d242b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ def fin():
154154
if driver_instance is None:
155155
if driver_class == "Firefox":
156156
options = get_options(driver_class, request.config)
157+
# There are issues with window size/position when running Firefox
158+
# under Wayland, so we use XWayland instead.
159+
os.environ['MOZ_ENABLE_WAYLAND'] = '0'
157160
if driver_class == "Chrome":
158161
options = get_options(driver_class, request.config)
159162
if driver_class == "Edge":

0 commit comments

Comments
 (0)