gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
678 stars 62 forks source link

Preload the element completely before taking a screenshot #945

Open sipayRT opened 1 month ago

sipayRT commented 1 month ago

Contribution

Describe the user story

On pages with dynamic content, elements that do not fit in the viewport can change their appearance/size when scrolling. This may cause an incorrect screenshot (wrong content/size, duplicating part of an element, etc)

Describe the solution you'd like

Before taking a screenshot of an element, we can scroll the page to the bottom of the element to be sure that the element is fully loaded

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response