Skip to main content

PageVisit

This method is used to navigate to a specific URL within an already opened page. It allows you to load new content in the same browser page instance and returns a task that completes when the navigation is done.

Parameters

  • page - object : page object from NewPage method.

  • url - String : The URL to which you want to navigate, specifying the new page to be loaded.

  • Set a variable (optional) : An optional variable name to store the response of the page visit, allowing you to reference it later (e.g., newpage).

RpScript​

How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://erametricras.com/");
var newpage = Pupet.PageVisit(pageresponse.page, "https://erametricras.com/sales-marketing/");
Wait(3);
Pupet.CloseBrowser();

Extension​