Element Lookup & Evaluation

Query Persistent Selectors

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

TIP

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.FindWebElementsByCss(Browser browser, SelectorPathEntry selectorPath, Selector selector, GPALElement null, true [bool IsPersistent]);

MagicHelper: MagicHelper utility library

GPAL.MagicHelper.QueryPersistentSelectors(string css);

Puppeteer Client: Puppeteer-style C# client

browser.PuppeteerClient.QueryPersistentSelectors(string css).Execute<List<GPALElement>>();

Puppeteer Communicator: Low-level communicator

await browser.PuppeteerCommunicator.QueryPersistentSelectors(string css, string sessionId);

REST Client: Direct REST/HTTP client

GPAL.OttoMagicClient.WithEndpoint(ApiEndpoint.QueryPersistentSelectors).WithCss(string css).Execute();