Function
extend
packages/browser/src/client/tester/context.ts:428–433
· packages/browser/src/client/tester/context.ts::extend
(methods)
Source from the content-addressed store, hash-verified
| 426 | throw new Error(`Method class="st">"frameLocator" is not supported by the class="st">"${provider}" provider.`) |
| 427 | }, |
| 428 | extend(methods) { |
| 429 | for (const key in methods) { |
| 430 | (page as any)[key] = (methods as any)[key].bind(page) |
| 431 | } |
| 432 | return page |
| 433 | }, |
| 434 | } |
| 435 | |
| 436 | function convertToLocator(element: Element | Locator): Locator { |
Callers
nothing calls this directly
Tested by
no test coverage detected