Selenium's WebElement method getScreenshotAs reliably generates screenshots. Unfortunately, Chrome resets an existing hover effect if it should create an element screenshot. The hover go back to the real mouse pointer position.
This behaviour has impact to pixel based layout checks.
This PR added an own implemenatation based on the former version and added frame/iframe support to
element screenshot
visible check of elements (also needed for element screenshots)
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
Selenium's WebElement method
getScreenshotAs
reliably generates screenshots. Unfortunately, Chrome resets an existing hover effect if it should create an element screenshot. The hover go back to the real mouse pointer position.This behaviour has impact to pixel based layout checks.
This PR added an own implemenatation based on the former version and added frame/iframe support to
Type of change
Please delete options that are not relevant.
Checklist: