Skip to content

Commit cab6301

Browse files
authored
Add innerHTML evaluation for firstElement q
1 parent 0f3d246 commit cab6301

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pages/playwright/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ <h2>Usefull snippets</h2>
5555
return window.getComputedStyle(el).getPropertyValue("background-color");
5656
});
5757
const outerHTML = await firstElement.evaluate((el) => el.outerHTML);
58+
const innerHTML = await firstElement.evaluate((el) => el.innerHTML);
5859

5960
// select in Web Component
6061
const section = await page.locator("center-and-height-resizer").locator(".buttons-container");

0 commit comments

Comments
 (0)