Skip to main content

IsClosed

This method checks whether the specified page is closed or still open, which is useful for managing the flow of automation tasks and ensuring the page is available for interaction

RpScript​

How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("Home - Erametric RAS ");
var isClosed= Pupet.IsClosed();
if (isClosed) {
Assert.Throw("the page is not responding"); }
Pupet.CloseBrowser();

Extension​