New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for performing assertions as part of an at check. #405

ldaley opened this Issue Sep 21, 2015 · 0 comments


None yet
2 participants

ldaley commented Sep 21, 2015

This is primarily for getting better IDE autocomplete. The following could be added to Browser…

<T extends Page, R> R at(T pageType, @DelegatesTo("T") Closure<R> assertions) {}

The implicit assertion transform would be applied to the closure body.

Usage would look like:

at(SomePage) {
  somePageProperty == "foo"

In IDEA at least, you should get completion for the page properties in the closure body due to the use of DelegatesTo.

@erdi erdi added this to the 1.0 milestone Oct 4, 2015

@erdi erdi removed this from the 1.0 milestone Dec 29, 2015

@erdi erdi self-assigned this Apr 5, 2018

@erdi erdi added this to the 2.2 milestone Apr 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment