Skip to content

The image comparison process stalls when utilising the checkElement method to compare screenshots of two different elements. #745

@mastershas

Description

@mastershas

Environment (please complete the following information):

  • Node.js version: 22.3.0
  • NPM version: 10.8.1
  • Browser name and version: Chrome 132
  • Platform name and version: macOS 14.7.2
  • WebdriverIO version: 9.5.7
  • @wdio/visual-service version: 6.3.0

Config of WebdriverIO + @wdio/visual-service
https://github.com/mastershas/wdio-jasmine/blob/master/wdio.shared.conf.ts

Describe the bug
The image comparison stalls when using checkElement method with two different elements.
Test Detail - https://github.com/mastershas/wdio-jasmine/blob/master/test/specs/form.spec.ts

To Reproduce

  1. Clone the https://github.com/mastershas/wdio-jasmine
  2. npm install
  3. npm run test:local

[Include code or an example repository that can easily be set up]

Expected behavior
Image comparison should be able to compare two different elements and return error or mismatch percentage.

Log
If applicable, add logs to help explain your problem. If you don't have log, enable 'debug:true' in the config and paste the log here.
Please use proper markdown to style it

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions