Skip to main content

ExitFrame

It is generally used when working within an iframe, to exit the iframe and return to the main page. This allows you to perform actions on the main page again after interacting with elements inside the iframe.

Parameters

No parameters.

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, "div:nth-child(7) > iframe:nth-child(1)", null);
var TypeOption = Pupet.TypeOption(2000);
Pupet.TypeText(pageresponse.page, "input#tnb-google-search-input", "inside of the iframe", null, TypeOption);
Wait(2);
Pupet.ExitFrame();
Pupet.TypeText(pageresponse.page, "input#tnb-google-search-input", "outside of the iframe", null, TypeOption);

Extension​