While writing some Protractor tests yesterday, I came across this error:
The reason for this error is the window size of the Chrome browser that is used by Protractor to run the tests. I don’t know why, but the windows size is only half the screen so some elements are rendered outside of the visible area. Yes I know, that’s not cross-platform, but the feature I’m developing is for desktop/laptops.
The browser window can be maximized by adding the following line to either the test setup or at the beginning of the test itself: