In our automation framework there are several custom fied types that do not implement WebElement, but take it as constructor parameter.
I’ve found some articles (in Russian) on how to implement custom fieldDecorator in selenium
initElements uses AppiumFieldDecorator, so I can’t replace it by arbitrary custom one without breaking backwards compatibility, but I thought I try to extend it.
And here I’m kinda lost - decorate returns either a
defaultElementFieldDecoracor.decorate() result or a
decorateWidget() result which is private thus can’t be inherited. Is there a way around that?
Has anyone managed to decorate custom elements successfully?
Any guidance and direction will be very appreciated, thanks!