mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
700062c836
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> |
||
---|---|---|
.. | ||
src |