playwright/packages/playwright-core/src
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
..
cli chore: ignore SIGINT inside driver process (#23028) 2023-05-17 01:44:17 +02:00
client fix(unroute): do not compare regexp instances (#23101) 2023-05-17 16:27:32 -07:00
common feat(connect): pw:server:channel and pw:socks debug logs (#23144) 2023-05-18 13:44:48 -07:00
image_tools test: enable ssim-cie94 image comparison algorithm for our tests (#19313) 2022-12-29 23:48:28 -08:00
protocol feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
remote feat(connect): pw:server:channel and pw:socks debug logs (#23144) 2023-05-18 13:44:48 -07:00
server feat(screenshot): Add customizable color option for masked elements (#23185) 2023-05-22 18:44:44 -07:00
third_party chore: remove experimental dockerfile.remote (#20790) 2023-02-09 12:18:02 -08:00
utils chore(internal): generate code in jsonl (#23124) 2023-05-20 10:15:33 -07:00
androidServerImpl.ts chore: remove separate network tethering client connection (#20267) 2023-01-21 18:18:22 -08:00
browserServerImpl.ts chore: remove separate network tethering client connection (#20267) 2023-01-21 18:18:22 -08:00
DEPS.list feat(android): add Android.{launchServer,connect} (#18263) 2022-10-24 17:23:11 -07:00
inprocess.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
inProcessFactory.ts chore: move sever/isomorphic to utils/ to use it in client (#21445) 2023-03-06 18:49:14 -08:00
outofprocess.ts fix(tracing): when zipping remotely, use correct file name (#23171) 2023-05-19 14:42:01 -07:00
utilsBundle.ts chore: migrate to protocol's StackFrame type (#21198) 2023-02-24 18:36:15 -08:00
zipBundle.ts chore(har): allow replaying from zip har (#14962) 2022-06-17 16:11:22 -07:00