how to apply changes according listening to Page events?

19 views
Skip to first unread message

medv...@gmail.com

unread,
May 3, 2021, 5:31:17 AM5/3/21
to Geb User Mailing List
hi,

this changed https://gebish.org/manual/current/#listening-to-page-events too with the newest geb versions.

we had a registerPageChangeListener  before https://gebish.org/manual/1.1/api/geb/Browser.html#registerPageChangeListener(geb.PageChangeListener), but how can I register the new PageEventListener

could you please give me an example?

thank you!

Marcin Erdmann

unread,
May 8, 2021, 4:54:52 PM5/8/21
to geb-...@googlegroups.com
Hi,

If you don't want to follow the example from https://gebish.org/manual/current/#listening-to-page-events showing how to register that listener via GebConfig.groovy config script then then you can always use https://gebish.org/manual/4.0/api/geb/Configuration.html#setPageEventListener(geb.PageEventListener) on an instance of Configuration obtained using https://gebish.org/manual/4.0/api/geb/Browser.html#getConfig().

Hope this helps.

Marcin

--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/6c217efc-3a20-41c9-bd77-d2f7d3f4adc3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages