Hi,
I am trying to do pageDump with use of spec of elements which exists within iframe.
Tried to use spec file which uses:
1. 'master' spec which calls component spec, smth like
master spec looks like
@objects
iframe css iframeSelectorHere
= Some check =
@on *
iframe:
component frame ComponentSpecFile.gspec
but it doesn't take any screenshot of ComponentSpecFile elements... only takes 'master' - namely iframe, viewport...
2. component spec itself and 'insideFrame' function, smth like
insideFrame(
driver,
'myFrameSelector',
() =>
dumpPage({
driver: driver,
name: 'My page dump',
spec: 'ComponentSpecFile.gspec',
exportPath: '/dist/dump',
maxWidth: 200,
maxHeight: 200,
})
);
better results. Got some screenshots within 'objects' folder... but they are ver inaccurate... meaning not exact screenshot of objects being taken...
Question:
How to 'enforce' pageDump to do accurate screenshots of elements located within iframe?