Package: geb

## [Groovy] Interface PageChangeListener

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

  deprecated:
    Use PageEventListener instead

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `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

    - #### 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.