SetMaximize
The SetMaximize method is used to maximize the browser window, ensuring that it occupies the entire screen. This is particularly useful in test automation to guarantee that tests run in a consistent browser size, eliminating issues related to varying window dimensions.
Parameters
- page (visitResponse .page): The page object returned by Pupet.Visit.
RpScript
How to use
Pupet.OpenBrowser(({ headless: false, browser: "Chrome", disableSecurity: true });
var pageresponse = Pupet.Visit("https://erametricras.com/");
Pupet.SetMaximize(pageresponse.page);
Extension
