PageDump in iframe

28 views
Skip to first unread message

cies...@gmail.com

unread,
Oct 12, 2018, 7:10:19 AM10/12/18
to Galen Framework
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?

Ivan Shubin

unread,
Oct 12, 2018, 7:44:04 AM10/12/18
to Galen Framework
Hi,

I don't think I will be able to help much here. The iframe support was always limited due to the underlying complexity and unfortunately I don't have enough resources to address this issue.

Kind regards,
Ivan

cies...@gmail.com

unread,
Oct 15, 2018, 7:04:32 AM10/15/18
to Galen Framework
Hi Ivan,
Thank you for quick check... 
Understand iframe complexity and resourcing for the project.

Regards,
Piotr
Reply all
Reply to author
Forward
0 new messages