BringToFront
This method activates the specified page, bringing it to the front of all open pages within the browser instance. It ensures that the specified page is focused for user interaction or further automation tasks.
Parameters
- page -
object: It represents the page object that will be interacted with
RpScript
How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://erametricras.com/");
Wait(5);
var newPage = Pupet.NewPage();
var newPageResponse = Pupet.Visit("https://erametricras.com/demo/");
Pupet.BringToFront(pageresponse.page);
Wait(3);
Pupet.CloseBrowser();
Extension
