Groovy Documentation

geb
[Groovy] Interface PageChangeListener


interface PageChangeListener

Mechanism for 3rd parties to receive notification when a browser page instance changes


Method Summary
void pageWillChange(Browser browser, Page oldPage, Page newPage)

Called first when the listener is registered, with oldPage as null and newPage as the current page at time of registration, then each time the browser's page instance changes.

 

Method Detail

pageWillChange

void pageWillChange(Browser browser, Page oldPage, Page newPage)
Called first when the listener is registered, with oldPage as null and newPage as the current page at time of registration, then each time the browser's page instance changes. Note that this is not when the browser navigates to a new page, but when it's page object changes.


 

Groovy API Documentation for Geb 0.9.3 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org