| 39 | } |
| 40 | |
| 41 | interface ElementHandle { |
| 42 | /** |
| 43 | * Selects all text in a editable element and clears it. |
| 44 | */ |
| 45 | clear(): Promise<void>; |
| 46 | |
| 47 | /** |
| 48 | * Clicks an element and waits for navigation to finish. |
| 49 | * |
| 50 | * @param options - Options to configure when the navigation is consided finished. |
| 51 | */ |
| 52 | clickAndWaitForNavigation(options?: WaitForOptions): Promise<HTTPResponse>; |
| 53 | |
| 54 | /** |
| 55 | * Clicks an element and waits for a request to be initiated. |
| 56 | * |
| 57 | * @param predicate - URL pattern to wait for, wildcards `*` are allowed. |
| 58 | * @param options - Optional waiting parameters. |
| 59 | */ |
| 60 | clickAndWaitForRequest(predicate: string | RegExp, options?: WaitTimeoutOptions): Promise<HTTPRequest>; |
| 61 | |
| 62 | /** |
| 63 | * Clicks an element and waits for a request to be initiated. |
| 64 | * |
| 65 | * @param predicate - Predicate to wait for. |
| 66 | * @param options - Optional waiting parameters. |
| 67 | */ |
| 68 | clickAndWaitForRequest(predicate: ((request: HTTPRequest) => boolean | Promise<boolean>), options?: WaitTimeoutOptions): Promise<HTTPRequest>; |
| 69 | |
| 70 | /** |
| 71 | * Clicks an element and waits for a request to be finalized. |
| 72 | * |
| 73 | * @param predicate - URL pattern to wait for, wildcards `*` are allowed. |
| 74 | * @param options - Optional waiting parameters. |
| 75 | */ |
| 76 | clickAndWaitForResponse(predicate: string | RegExp, options?: WaitTimeoutOptions): Promise<HTTPResponse>; |
| 77 | |
| 78 | /** |
| 79 | * Clicks an element and waits for a request to be finalized. |
| 80 | * |
| 81 | * @param predicate - Predicate to wait for. |
| 82 | * @param options - Optional waiting parameters. |
| 83 | */ |
| 84 | clickAndWaitForResponse(predicate: ((request: HTTPResponse) => boolean | Promise<boolean>), options?: WaitTimeoutOptions): Promise<HTTPResponse>; |
| 85 | |
| 86 | /** |
| 87 | * Fills a `form` with a variable number of inputs and returns its actual filled state. |
| 88 | * |
| 89 | * @param data - Data to fill the form, as a label-value[s] map. |
| 90 | */ |
| 91 | fillFormByLabel<T extends Record<string, boolean | string | string[]>>(data: T): Promise<Record<keyof T, string[]>>; |
| 92 | |
| 93 | /** |
| 94 | * Fills a `form` with a variable number of inputs and returns its actual filled state. |
| 95 | * |
| 96 | * @param data - Data to fill the form, as a name-value[s] map. |
| 97 | */ |
| 98 | fillFormByName<T extends Record<string, boolean | string | string[]>>(data: T): Promise<Record<keyof T, string[]>>; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…