appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.22k stars 758 forks source link

Feature: Overridden widget interfaces #1926

Open wazzeps opened 1 year ago

wazzeps commented 1 year ago

Description

Is it possible to implement so that overridden widgets are interfaces?

Environment

Java client 8.5.0

Details

Now we have some restrictions: All classes which are declared by the OverrideWidget annotation should be subclasses of the class declared by field All classes which are declared by the OverrideWidget should not be abstract

@OverrideWidget(iOSUIAutomation = UsersWidgetForIOS .class) DefaultUsersWidget widget;

Is it possible to implement so that DefaultUsersWidget is an interface?