telekom / testerra

Testerra is an integrated framework for automating tests for (web) applications.
https://docs.testerra.io/
Apache License 2.0
27 stars 15 forks source link

Revert creating element screenshots because of Chrome #374

Closed martingrossmann closed 10 months ago

martingrossmann commented 11 months ago

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: