How to Adjust Window Size#
The window size defines the outer size of the browser window. If you want to change the inner size, check the viewport section.
General Window Sizes#
Full Screen#
How to fill the entire screen. Similar to pressing F11 in most browsers:
Python | |
---|---|
Maximized#
How to enlarge the browser window to the maximum allowed size:
Python | |
---|---|
Info
For most operating systems, the window will fill the screen, without blocking the operating system's own menus and toolbars. Obviously, the size of the browser window also depends on the device and its screen resolution.
Minimized#
Minimizing the window typically hides the window in the system tray, though the exact behavior may vary depending on the operating system:
Python | |
---|---|
Specific Window Size#
Set#
You can resize the browser window to a specific size, either vertically, horizontally, or both at the same time.
Info
The size of the browser window is limited by several factors, including the operating system, the screen resolution of the monitor, and the different minimum sizes of different browser types. The resizing methods can therefore only attempt to set a specific size where possible.
Size#
How to set the browser window to a specific size, if possible:
Python | |
---|---|
Width#
Similarly, only set the width to a specific size, if possible:
Python | |
---|---|
Height#
Similarly, only set the height to a specific size, if possible:
Python | |
---|---|
Get#
You can get the size of the browser window vertically, horizontally or both at the same time.
Size#
For example, how to get the current window size and decrease it by 10 pixels both in width and height, if possible:
Python | |
---|---|
Width#
Similarly, only decrease the width by 10 pixels, if possible:
Python | |
---|---|
Height#
Similarly, only decrease the height by 10 pixels, if possible: