Resize (width@height) - new Selenium IDE command

Use resize to resize the browser window to emulate various screen resolutions. This command re-sizes the browser's window in order to emulate various resolutions. It is particularly useful for web designers and developers by helping them test their layouts on different browser resolutions. You can set the window's width/height. The new dimensions always apply to the viewport (not the entire window).

In other words, the command does exactly the same as, for example, the Windows Resizer or Browser Resize browser extensions for Chrome an Firefox do manually. But Kantu does it as part of an automation or test sequence. This is especially useful when doing visual UI testing with responsive web pages.

Resize Example

Command Target Pattern/Text
open https://a9t9.com/
resize 1024@768
visualAssert layout_monitor1.png
resize 375@667
visualAssert layout_iphone8.png

Works in

Kantu for Chrome Selenium IDE

Related Demo Macros

DemoVisualUITest

See also

captureScreenshot, storeText, Web Automation Extension User Manual, Selenium IDE commands, Classic Firefox Selenium IDE.

Anything wrong or missing on this page? Suggestions?

...then please contact us.

Kantu Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the a9t9 automation software newsletter . We'll send you updates on new releases that we're working on.