function extractArrayFromPageUsingSelectors<T>(page, listExtractor): Promise<ExtractListObjectsUsingStaticSelectorsReturnType<T>>

Extracts a list of objects from a web page using the specified static selectors.

Type parameters

T extends ListStaticExtractor

Examples

Parameters

page: Page

The Playwright Page object from which to extract the data.

listExtractor: T

The list static extractor with the selectors to use.

Returns

Promise<ExtractListObjectsUsingStaticSelectorsReturnType<T>>

A promise that resolves to the extracted list of objects.