I've coded my scripts using a screen resolution of 1920x1080(16:9) and now I'm running on a jenkins slave which I noticed has 1024x768(4:3) and tests just fail. Is this because the screen resolution is breaking the DOM? I'm thinking that this is because failures are caused by elements not being found (not quite sure if the right word) but I would think that even if layout is not responsive elements should be found? Anyone know if this is the cause and how to get around it?
I did come across the same issue and I resolved it by setting the dimensions to the resolution I wanted:
driver.manage().window().setSize(new Dimension(1920, 1080));
It worked perfect for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With