Closed denyskolopelnyk closed 11 months ago
Following API is available:
await expect(page).toHaveScreenshot({clip})
And the following API is NOT available:
await expect(page.locator('body')).toHaveScreenshot({clip})
We can only clip when taking a page screenshot, where the clip origin is defined.
Closing as per above, please feel free to open a new issue if this does not cover your use case.
System info
Source code
I need to crop the screen shot as the same image is used in several places with different perspective
Actual
I cannot use the clip option from the wiki as it does not exist