(this: Playwright<ElementHandleExt>, attr: string)
| 478 | } |
| 479 | |
| 480 | async getAttribute(this: Playwright<ElementHandleExt>, attr: string) { |
| 481 | return this.continueChain((el) => el.getAttribute(attr)) |
| 482 | } |
| 483 | |
| 484 | hasElementByCssSelector(selector: string) { |
| 485 | return this.eval<boolean>(`!!document.querySelector('${selector}')`) |