Skip to content
This repository was archived by the owner on Dec 24, 2023. It is now read-only.
This repository was archived by the owner on Dec 24, 2023. It is now read-only.

checkElement only saves a screenshot with part of the element #20

@anto-ac

Description

@anto-ac

Environment (please complete the following information):

  • Node.js version: 8.11.4 (but also tries in 10.15.0)
  • Browser name and version: Firefox 67.0 and Chrome 75.0.3770.80 and previous versions
  • Platform name and version: Debian Jessie (but it's not OS dependent)
  • Framework name and version: wdio 5.10.0
  • Plugin name and version: wdio-image-comparison-service 1.1.0
  • webdriver-image-comparison version: 0.5.0

Config of the automation framework + plugin
See here: https://github.com/anto-ac/checkElement-wdio-image-comparison-service-issue

Describe the bug

When taking a screenshot of an element via checkElement, only part of element is shown in the screenshot.
I think (but I'm not sure) it may happen for elements that are larger than the visible viewport.

See image taken from the library:
https://user-images.githubusercontent.com/30859172/59210996-b7715280-8ba6-11e9-9006-ca2adfa34196.png

To Reproduce
Steps to reproduce the behavior:

Run the test included in this repo:
https://github.com/anto-ac/checkElement-wdio-image-comparison-service-issue

You will need docker and docker-compose to run it.

Expected behavior
The whole element should be captured in the screenshot.

app-content

Log
See here: https://gist.github.com/anto-ac/1877d24fa9e88b5fd2ec5acc7b371626

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions