是否可以扩展AppiumFieldDecorator类以使其接受自定义注释?

时间:2017-02-01 14:33:47

标签: java selenium-webdriver appium

是否可以扩展AppiumFieldDecorator并使CustomAppiumFieldDecorator课程如何接受自定义注释?

@AndroidFindBy(id = "selectButton")
@MyCustomAnnotation(val = "CustomValue")
MobileElement someElement;

这可能吗?

链接到class here

public void click (MobileElement element) {
   element.click();
   element.log(); //This may be a custom method which will print the value in `MyCustomAnnotation` above
}

0 个答案:

没有答案