htmlelements icon indicating copy to clipboard operation
htmlelements copied to clipboard

TypifiedElement vs HtmlElement different hierarhys

Open dmakhno opened this issue 11 years ago • 0 comments

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

dmakhno avatar Jan 30 '13 13:01 dmakhno