Skip to content
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

TypifiedElement vs HtmlElement different hierarhys #13

Open
dmakhno opened this issue Jan 30, 2013 · 0 comments
Open

TypifiedElement vs HtmlElement different hierarhys #13

dmakhno opened this issue Jan 30, 2013 · 0 comments

Comments

@dmakhno
Copy link

dmakhno commented Jan 30, 2013

It would be nice to make class level annotations also for Typified elements.

I was going to play with Block annotation while met following
And I have to use following:

@Block(new FindBy(className= "js-navigate"))
class JsNavigate(we:WebElement) extends HtmlElement {
  ...
}

What I really need is

@Block(new FindBy(className= "js-navigate"))
class JsNavigate(we:WebElement) extends Link(we) {
}

Goal to have ability wrap controls by extended functionality.

Workaround might be

class PageWith ... {

  @FindBy(className= "js-navigate") //this is always the same, that is why I'd like to use class level annotation
  var links:java.util.List[JsNavigate] = null
}

Note: Sorry for scala, if not clear I'll provide more info.
P.S. Due to #2 not sure how to call such annotations. Block or FindBy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant