Resize (width@height) - new Selenium IDE command (deprecated, use setWindowSize)

The command is now called setWindowSize.

Use resize to resize the browser window to emulate various screen resolutions. Connect to a proxy server to run the current macro. The iMacros Browser then connects to the Internet through a proxy server by using the settings you specify. You can define a specific proxy server for each macro. Each running instance of the iMacros Browser can have its own proxy server. The proxy setting remains in effect until you specify a different proxy or restart the browser.

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 UI.Vision RPA 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
resize 1024@768
visualAssert layout_monitor1.png
resize 375@667
visualAssert layout_iphone8.png

Works in

UI.Vision RPA for Chrome Selenium IDE

Related Demo Macros


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.

<em>UI.Vision RPA</em> Selenium IDE for Chrome and Firefox - Web Test Automation
Subscribe to the UI Vision RPA software newsletter . We'll send you updates on new releases that we're working on.