Replies: 2 comments
-
Nice catch. Thanks for reporting this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using xvfb on linux ubuntu server 24.04 in UC mode with SeleniumBase 4.31.3.
I cannot get screen resolution to change when using parameter
--xvfb-metrics
to launch the test: screen resolution is always1366x768
.Test is launched with following pamateters:
--xvfb --xvfb-metrics="1920,1080"
UC mode is activated using context manager:
with SB(uc=True, user_data_dir="my_user_dir_1") as sb:
I have traced the execution of SeleniumBase code and I see that
setUp
function is called after__activate_virtual_display_as_needed
(inseleniumbase/fixtures/base_case.py
).Reading
--xvfb-metrics
parameter occurs insetUp
function:__activate_virtual_display_as_needed
gets emptyself._xvfb_width
andself._xvfb_height
attributes and in result sets the default resolution (1366x768
).Am I using the xvfb parameters wrong ?
Beta Was this translation helpful? Give feedback.
All reactions