FindElements
The FindElements function is designed to locate and return a collection of elements within the DOM (Document Object Model) of a web page. It uses a CSS selector to identify and query these elements, allowing for precise targeting of specific parts of the web page's content.
Parameters
- page (visitResponse .page): 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.
RpScript
How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://erametricras.com/");
var elements = Pupet.FindElements(pageresponse.page, "div.tdi_33.td-pb-span9 > div.wpb_wrapper", null);
Pupet.CloseBrowser();
Extension
