java是否可以扩展AppIUMFieldCorator类以使其接受自定义注释?
是否可以扩展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) 个答案