zinserjan / wdio-screenshot

A WebdriverIO plugin. Additional commands for taking screenshots with WebdriverIO.
MIT License
108 stars 43 forks source link

Some elements do not show on screen shot even though elementIdDisplayed is true #81

Open sshaar08 opened 6 years ago

sshaar08 commented 6 years ago

I have a menu bar that is locked to the bottom for tablet and moves with scroll, when I take a screenshot with saveScreenshot it is displayed. but when I use the saveViewport or saveElement versions of wdio-screenshot the element is missing. The HTML I have I cant post here I'm going to try and find an example online that I can send you.

My findings so far point me to the issue possibly being around virtual scroll that is used during the service.

my element uses background-attachment: scroll

zinserjan commented 6 years ago

Please create an reproducible example and we can look into this.