How do we generate a Galen dump after user clicks a button on the page

526 views
Skip to first unread message

kdodd...@gmail.com

unread,
Aug 4, 2016, 9:30:33 AM8/4/16
to Galen Framework
Hi Folks,

Galen Framework is an excellent fit for our team needs. I gave a demo yesterday to my team after writing some 1000 specs for a page on Desktop, Mobile and Tablet resolutions on my local machine and on Sauce labs.

I would like to know the method to generate a Galen dump after user clicks a button or two on the page.

As soon as our website launches there are couple of pop-ups which appear to acceptance of User Location and Our Cookie policy.

With the current command, it only generates the dump for the page objects generated thus far. After the User clicks OK, the other page objects will load on the page.

Example: I need to generate a dump of page objects and relative specs after the user closes the first pop-up that appears on NYTimes.
galen dump test/visual/specs/homepage.gspec --url "http://www.nytimes.com/" --size "1366x768" --export "test/visual/dumps"

something like this does not work
galen dump test/visual/specs/home_all.gspec --url "http://www.nytimes.com/" --size "1366x768" --export "test/visual/dumps" --javascript "test/visual/home.test.js"







Ivan Shubin

unread,
Sep 12, 2016, 4:31:15 AM9/12/16
to Galen Framework
Hi,

Sorry for late reply. In this case you can't really generate page dump from a command line. Instead you need to prepare a test suite and perform some actions on the page before executing page dump action.
If you are going to use basic galen test suites you will have to use this page action http://galenframework.com/docs/reference-galen-test-suite-syntax/#PageDump
If you want to build a JavaScript suite, then you can use this function for making a page dump http://galenframework.com/docs/reference-galen-javascript-api/#dumpPage

Kind regards,
Ivan
Reply all
Reply to author
Forward
0 new messages