Skip to content

isqua/hermione-screenshot-iframe

Repository files navigation

Hermione capture screenshots of elements in iframe incorrectly

The problem is, that when you try to capture an element in iframe with hermione#assertView the element coordinates doesn’t consider iframe position.

See tests/iframe.hermione.js.

Setup

npm install

Reproduce

Capture screenshot of element in iframe when iframe is at 0,0 on page:

GRID_URL=http://localhost:4444 npm run nooffset

Capture screenshot of element in frame when iframe is shifted down:

GRID_URL=http://localhost:4444 npm run offset

About

Minimal case to reproduce bug in hermione

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages