Authenticate
This method is used to set up credentials for HTTP authentication. It takes a username and password, which are automatically used when the browser encounters authentication challenges from the website.
Parameters
- page -
object: page object from Visit method. - username -
String: The username used for authentication. - password -
String: The password associated with the username for authentication.
RpScript
How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://httpbin.org/basic-auth/foo/bar?ref=wonderproxy.com");
Pupet.Authenticate(pageresponse.page, "user", "password");
Pupet.CloseBrowser();
Extension
