Skip to content

Commit 1ceec6a

Browse files
The refactoring of widget tests: lost parameters of the OverrideWidget were added
also old tests were removed
1 parent a079f48 commit 1ceec6a

File tree

66 files changed

+21
-3869
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+21
-3869
lines changed

src/main/java/io/appium/java_client/pagefactory/OverrideWidget.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,31 @@
5959
Class<? extends Widget> iOSUIAutomation() default Widget.class;
6060

6161
/**
62-
* This property is designed for Android native content when Selendroid automation is used.
62+
* This property is designed for Android native content when
63+
* {@link io.appium.java_client.remote.AutomationName#SELENDROID} automation is used.
6364
* A declared class should not be abstract. Declared class also should be a subclass
6465
* of an annotated class/class which is declared by an annotated field.
6566
*
6667
* @return a class which extends {@link io.appium.java_client.pagefactory.Widget}
6768
*/
6869
Class<? extends Widget> selendroid() default Widget.class;
70+
71+
/**
72+
* This property is designed for iOS native content when
73+
* {@link io.appium.java_client.remote.AutomationName#IOS_XCUI_TEST} automation is used.
74+
* A declared class should not be abstract. Declared class also should be a subclass
75+
* of an annotated class/class which is declared by an annotated field.
76+
*
77+
* @return a class which extends {@link io.appium.java_client.pagefactory.Widget}
78+
*/
79+
Class<? extends Widget> iOSXCUITAutomation() default Widget.class;
80+
81+
/**
82+
* This property is designed for Windows native content.
83+
* A declared class should not be abstract. Declared class also should be a subclass
84+
* of an annotated class/class which is declared by an annotated field.
85+
*
86+
* @return a class which extends {@link io.appium.java_client.pagefactory.Widget}
87+
*/
88+
Class<? extends Widget> windowsAutomation() default Widget.class;
6989
}

src/test/java/io/appium/java_client/pagefactory_tests/widgets/AndroidOverrideWidgetTest.java

Lines changed: 0 additions & 145 deletions
This file was deleted.

src/test/java/io/appium/java_client/pagefactory_tests/widgets/HtmlOverrideWidgetTest.java

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)