TestProject Forum

[Bug] Set Window Size and SauceLabs

There might be a possible issue with set window size when running on sauce labs that doesn’t get set correctly.

their new capability for setting resolution is: “screenResolution”:

so not sure it’s sending the above to sauce.

Side note:
Maybe we can get some steps for what the test is set to run on say saucelabs, local, ect. grab it as a variable then pass it say specific capabilities for sauce, remote ect.

Hi @elsidaliaj,

You can change the screen resolution with custom capabilities.
Simply create a new job and edit the Desired capabilities:

image

Set the resolution :

yes i did that thanks.

Is there any teststep to send desired capabilities through the test instead of always running through a job? Also maybe an option if running on sauce browserstack browser then run desired capabilities step inside test.