EnterFrame
EnterFrame is used to enter an iframe and perform actions within it. This command is utilized in browser automation when you need to access and interact with elements inside the iframe.
Parameters
- page (visitResponse .page): The page object returned by Pupet.Visit.
- frameselector -
String: The CSS selector used to identify the element within the iframe. For example, #username could refer to a textbox element's ID. - Parent - IElementHandle
RpScript
How to use
Pupet.OpenBrowser(({ headless: false, browser: "Chrome", disableSecurity: true });
var pageresponse = Pupet.Visit("https://www.w3schools.com/html/html_iframe.asp");
Wait(3);
Pupet.EnterFrame(pageresponse.page, "iframeSelector", null);
Pupet.CloseBrowser();
Extension
