ExtendedPlaywrightPage
Extends
Page
Properties
extractArrayOptimized()
an alias for extractArrayFromPage function
Parameters
• options
• options.itemEntityName: string
• options.itemEntitySchema: SimpleArrayItemSchema
• options.label: string
• options.optionalPropertiesInvalidator?
• options.prompt?: string
• options.strategy?: ImageStrategy
| HtmlStrategy
• options.variantKey?: string
Returns
Promise
<Record
<string
, string
>[]>
extractArrayUsingSelectors()
an alias for extractArrayFromPageUsingSelectors function
Type parameters
• T extends ListStaticExtractor
Parameters
• extractor: T
Returns
Promise
<ExtractListObjectsUsingStaticSelectorsReturnType
<T
>>
extractMarkdown()
an alias for extractMarkdownFromPage function
Returns
Promise
<string
>
extractObjectOptimized()
an alias for extractObjectFromPage function
Parameters
• options
• options.entityName: string
• options.entitySchema: SimpleObjectSchema
• options.label: string
• options.optionalPropertiesInvalidator?
• options.prompt?: string
• options.strategy?: ImageStrategy
| HtmlStrategy
• options.variantKey?: string
Returns
Promise
<null
| Record
<string
, null
| string
>>
extractObjectUsingSelectors()
an alias for extractObjectFromPageUsingSelectors function
Type parameters
• T extends ObjectExtractor
Parameters
• extractor: T
Returns
Promise
<ExtractObjectFromPageUsingSelectorsReturnType
<T
>>
extractStructuredData()
an alias for extractStructuredDataFromPage function
Parameters
• options
• options.dataSchema: JsonSchema
• options.label: string
• options.prompt?: string
• options.strategy?: ImageStrategy
| HtmlStrategy
Returns
Promise
<any
>
fillForm()
an alias for fillForm function
Parameters
• options
• options.autoRecoveryOptions?
• options.autoRecoveryOptions.enabled: boolean
Whether auto-recovery is enabled
• options.autoRecoveryOptions.fieldsToMask?: ElementSelector
[]
Fields to mask during auto-recovery, use this if you do not want to send your form values to ai.
• options.autoRecoveryOptions.generateDataToUnblockForm?
• options.autoRecoveryOptions.generateDataToUnblockForm.enabled: boolean
Whether generating data to unblock the form is enabled.
• options.autoRecoveryOptions.generateDataToUnblockForm.prompt: string
The prompt to use for generating data.
• options.autoRecoveryOptions.maxRetries?: number
Maximum number of retries for auto-recovery
• options.autoRecoveryOptions.recoveryData: object
Data to use for auto-recovery
• options.fillFieldTimeout?: number
• options.formInput: (DynamicFormInputItem
| StaticFormInputItem
)[]
• options.formLocator: Locator
| ElementSelector
• options.isSubmitSuccessful
• options.submitForm
• options.timeout?: number
• options.waitTimeBetweenFill?: number
Returns
Promise
<boolean
>
goto()
an alias for extractStructuredDataFromPage function
Parameters
• url: string
• options?
• options.referer?: string
• options.throwOnTimeout?: boolean
• options.timeout?: number
• options.waitUntil?: "load"
| "domcontentloaded"
| "networkidle"
| "commit"
Returns
Promise
<null
| Response
>
Overrides
Page.goto