Skip to main content

ElementClick

ElementClick is the action of automatically clicking on a specific element on a web page and is typically used to simulate user interactions.

Parameters

  • page - Object: The page object returned by Pupet.Visit.

  • selector - String : It is a string that is used to identify a specific element or elements on a web page.

  • Parent- IElementHandle

  • source - IElementHandle

RpScript​

How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://erametricras.com/");
var commitButton = Pupet.FindElement(pageresponse.page, "a.tds-button1.tdm-btn.tdm-btn-sm.tdi_347", null);
Pupet.ElementClick(commitButton);
Wait(3);
Pupet.CloseBrowser();

Extension​