有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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) 个答案