Skip to content

Commit

Permalink
add back .text fn
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Jun 23, 2023
1 parent a11a3e0 commit 2c7bc58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/lib/browsers/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function quit() {

interface ElementHandleExt extends ElementHandle {
getComputedCss(prop: string): Promise<string>
text(): Promise<string>
}

export class Playwright extends BrowserInterface {
Expand Down Expand Up @@ -252,6 +253,7 @@ export class Playwright extends BrowserInterface {
return Object.assign(el, {
selector,
getComputedCss,
text: () => el.innerText(),
})
}

Expand Down

0 comments on commit 2c7bc58

Please sign in to comment.