We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 014f645 commit a8557caCopy full SHA for a8557ca
1 file changed
pages/playwright/index.html
@@ -54,6 +54,19 @@ <h2>Usefull snippets</h2>
54
const backgroundColor = await button.evaluate((el) => {
55
return window.getComputedStyle(el).getPropertyValue("background-color");
56
});
57
+
58
+ // select in Web Component
59
+ const section = await page.locator("center-and-height-resizer").locator(".buttons-container");
60
61
+ // exist or not exist
62
+ {
63
+ await expect(section.locator(".clear-btn")).toBeVisible();
64
+ await expect(section.locator(".loader")).not.toBeVisible();
65
+ }
66
67
+ // checkbox
68
+ await page.locator("#loading-sel-1").check();
69
+ await page.locator("#loading-sel-1").uncheck();
70
71
</script>
72
0 commit comments