playwright/tests
Jasiel Guillén 700062c836
feat(screenshot): Add customizable color option for masked elements (#23185)
I added a new option to the screenshot method to customize the color of
the box when we want to mask some elements for the screenshot.

The default color is pink `#FF00FF`, but with this new option you can
specify the color you like the most, like a nice green `#00FF00`:

```js
await page.screenshot({
  mask: [page.locator('div').nth(5)],
  maskColor: "#00FF00",
})
```


![ss](https://github.com/microsoft/playwright/assets/23271049/05f754de-0ba6-47a3-ae3e-769720d3da3b)

---------

Signed-off-by: Jasiel Guillén <darkensses@gmail.com>
2023-05-22 18:44:44 -07:00
..
android devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
assets fix: React selectors should work after unmount (#22750) 2023-05-10 06:18:01 -07:00
components fix(ct): solid typecheck (#22799) 2023-05-03 13:53:46 -07:00
config test: use custom browser binary for connnect tests (#22900) 2023-05-10 09:30:56 +02:00
electron devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
image_tools chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
installation chore: ignore SIGINT inside driver process (#23028) 2023-05-17 01:44:17 +02:00
library chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
page feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
playwright-test chore: blob report project suffix (#23212) 2023-05-22 17:54:37 -07:00
stress chore: fix typos (#20473) 2023-01-30 09:53:28 +01:00
webview2 devops: do not upload test-results artifacts (#23168) 2023-05-19 13:06:42 -07:00
index.d.ts test: added tests for WebSocket over Socks proxy (#7235) 2021-06-24 18:50:16 +02:00
tsconfig.json chore: render test steps in the trace (#22837) 2023-05-05 15:12:18 -07:00