Element Lookup & Evaluation

Evaluate All Persistent

Only used by GPAL for persistent selectors, Searches for all DOM elements matching the provided XPath expression within the configured search root. If found, returns the element data; if no match exists, returns an empty result.

NOTE

Persistent selectors specifically search only in the main content page, content 0, where popups are displayed generally.

Examples

GPAL Fluent: High-level fluent C# API

List<GPALElement> elems = ElementHelper.FindWebElementsByXPath(Browser browser, SelectorPathEntry selectorPath, Selector selector, GPALElement null, true [bool IsPersistent]);

MagicHelper: MagicHelper utility library

//Persistent lookups are OttoMagic only, so there is no Puppeteer equivalent to show. A persistent selector is found through MagicHelper whatever engine is driving the browser.

browser.MagicHelper.EvaluateAllPersistent(string xpath);

REST Client: Direct REST/HTTP client

browser.OttoMagicClient.WithEndpoint(ApiEndpoint.EvaluateAllPersistent).WithXPath(string xpath).Execute();

💬 Ask GPAL