playwright/packages
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
..
html-reporter fix(html): fix the filter to respect status (#23208) 2023-05-22 15:35:19 -07:00
playwright chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-chromium chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-core feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
playwright-ct-core chore: fix playwright-core cli (#23203) 2023-05-22 12:37:08 -07:00
playwright-ct-react chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-react17 chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-solid chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-svelte feat(ct): svelte partial update (#23193) 2023-05-22 13:18:56 -07:00
playwright-ct-vue chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-ct-vue2 chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-firefox chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
playwright-test chore: blob report project suffix (#23212) 2023-05-22 17:54:37 -07:00
playwright-webkit chore: cut v1.34.0 (#23121) 2023-05-17 19:05:38 -07:00
protocol/src feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
recorder chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
trace/src chore: add string attachments to trace (#22921) 2023-05-11 16:32:32 -07:00
trace-viewer chore: do not show stale source in the trace (#23163) 2023-05-19 15:18:18 -07:00
web chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
.eslintrc-with-ts-config.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.eslintrc.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00