Get help with testing, discuss unit testing strategies etc.


Post by chauncey-garrett »

I've launched webdriver with the option
--cap "screenResolution=2560x1600"
and have the viewport set in the harness as follows:
viewportHeight: 1080,
viewportWidth: 1920, 
When the test runs in SauceLabs, I get this:

Image

Notice the resolution is 1279X1023. I think this may be coming from line 12937 of siesta-launcher-all.js and that the width and height may not be set as expected.

Note that the iframe size appears to be set properly since I see 2/3 of the app I'm testing (with vertical and horizonal scrollbars). The VM resolution appears to be set properly as well. This is just and issue with the size of the browser window itself.

Can you confirm?

Post by nickolay »

You probably need to also use --width and --height command line options, which set the width and height of the browser window (`viewportHeight/Width` set the size of the test's iframe).

Post by chauncey-garrett »

You're right, thanks! I didn't realize those options referred to the browser window.

Post Reply