Support navigating to page instances in addition to classes #310
Comments
Resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved |
Originally created by Luke Daley.
it should be possible to do:
After this change,
to(SomePage)
becomes just shorthand forto(new SomePage())
.We will have to add some formal kind of notion of initialised to Pages. Initialisation is performed by Geb (in Browser) which is where the backing navigator is attached to the Page instance.
If a user tries to use Geb functionality (e.g. Navigator method) on an uninitialised page they should get an appropriate error.
If they try to initialise an already initialised page they should get an appropriate error message (e.g.
to(to(new SomePage())
).The text was updated successfully, but these errors were encountered: