I have an angular application for which I wrote e2e tests using a protractor. I am doing my tests on saucelabs . For example, there is a small problem with my page. If my browser is not maximized, some of the css will be mixed up (I plan to fix this in the future), and that would certainly end some of my test cases that I wrote.
However, if my browser is maximized, everything is perfect. Now the problem is when I run my test on saucelabs, even if the browser looks maximum (according to saucelab snapshots), my css looks corrupted, as it happens when my browser does not maximize locally.
I did some research and found that I can use
browser.driver.manage().window().maximize();
However, in my case, since the browser is already maximized, do I need to increase the screen resolution or something else? Please provide suggestions
user5049061
source
share