htmlelements
htmlelements copied to clipboard
TypifiedElement vs HtmlElement different hierarhys
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