In this article, we explain how to change the browser window size when executing a test. Changing the window size is useful in the following types of cases:
- In case you want to test a website at a specific recommended size
- If you want to stabilize results with periodic batch executions
- In particular, it is almost mandatory to use the visual diff confirmation command.
The browser window size can be changed from the settings panel. If all of these are left blank, the default size of the machine running the browser will be used.
"Maximize" is checked by default in the "Cloud" environment. In this case, the window size is 1360x1000px.
Points to note
"Window size" is literally defined as the size of the whole browser window (red box in the figure below), rather than the area where HTML is displayed (blue box). The difference between the red and blue frames is the browser frame area, but the size of this area varies slightly depending on the OS (Windows/Mac/Linux). Therefore, the size of the HTML portion may be different, even if you specify the same window size and execute the test on multiple operating systems.