Is there a way to resize the browser window or switch to a different window or tab?
Loadster’s Browser Bots start with a single window with a 1280x720 viewport by default.
This works fine for most sites, but you might need to change it if your responsive site shows and hides key functionality, or displays altogether different elements, for certain screen sizes.
Also, some sites open links in a new tab, or create popup windows in response to a user action. Creating automated tests for such sites requires switching between windows or tabs.
Resizing the browser viewport
Responsive websites adapt to the browser’s size so that they look good and work properly on a variety of devices. The viewport is what we call the section of a browser window where the actual web page content is displayed. Most responsive sites respond to the viewport size rather than the total window or screen size, so the viewport is what we adjust when we need the responsive site to look a certain way.
You can change the size of the Browser Bot’s viewport in a code block by
calling browser.setViewportSize(width, height).