diff --git a/src/main/java/io/appium/java_client/FindsByIosUIAutomation.java b/src/main/java/io/appium/java_client/FindsByIosUIAutomation.java index f1badeaca..ce0c2598a 100644 --- a/src/main/java/io/appium/java_client/FindsByIosUIAutomation.java +++ b/src/main/java/io/appium/java_client/FindsByIosUIAutomation.java @@ -22,6 +22,7 @@ import java.util.List; +@Deprecated public interface FindsByIosUIAutomation extends FindsByFluentSelector { /** * Method performs the searching for a single element by iOS UIAutomation selector diff --git a/src/main/java/io/appium/java_client/MobileBy.java b/src/main/java/io/appium/java_client/MobileBy.java index 1fd80ea15..d86595725 100644 --- a/src/main/java/io/appium/java_client/MobileBy.java +++ b/src/main/java/io/appium/java_client/MobileBy.java @@ -69,6 +69,9 @@ protected String getLocatorString() { * * @param iOSAutomationText is iOS UIAutomation string * @return an instance of {@link io.appium.java_client.MobileBy.ByIosUIAutomation} + * + * @deprecated UIAutomation is going to get deprecated. + * It is recommended to use XCUITest */ public static By IosUIAutomation(final String iOSAutomationText) { return new ByIosUIAutomation(iOSAutomationText); diff --git a/src/main/java/io/appium/java_client/pagefactory/HowToUseLocators.java b/src/main/java/io/appium/java_client/pagefactory/HowToUseLocators.java index 18cec5010..4c38b1152 100644 --- a/src/main/java/io/appium/java_client/pagefactory/HowToUseLocators.java +++ b/src/main/java/io/appium/java_client/pagefactory/HowToUseLocators.java @@ -55,7 +55,11 @@ * * @return the strategy which defines how to use locators which are described by the * {@link iOSFindBy} annotation + * + * @deprecated UIAutomation is going to get deprecated. + * It is recommended to use XCUITest */ + @Deprecated LocatorGroupStrategy iOSAutomation() default LocatorGroupStrategy.CHAIN; /** diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindAll.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindAll.java index 304b0bd45..b18041dde 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindAll.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindAll.java @@ -29,8 +29,13 @@ * of {@link io.appium.java_client.pagefactory.iOSBy} tags. * It will then search for all elements that match any criteria. Note that elements * are not guaranteed to be in document order. + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindAll} instead + * It is recommended to use XCUITest */ -@Retention(RUNTIME) @Target({FIELD, TYPE}) +@Retention(RUNTIME) +@Target({FIELD, TYPE}) @Repeatable(iOSFindByAllSet.class) public @interface iOSFindAll { /** diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindBy.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindBy.java index c9e124568..d11596f5d 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindBy.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindBy.java @@ -31,8 +31,13 @@ * {@link org.openqa.selenium.support.PageFactory} * this allows users to quickly and easily create PageObjects. * using iOS UI selectors, accessibility, id, name, class name, tag and xpath + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindBy} instead + * It is recommended to use XCUITest */ -@Retention(RUNTIME) @Target({FIELD, TYPE}) +@Retention(RUNTIME) +@Target({FIELD, TYPE}) @Repeatable(iOSFindBySet.class) public @interface iOSFindBy { /** diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindByAllSet.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindByAllSet.java index cbedac322..838059965 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindByAllSet.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindByAllSet.java @@ -10,6 +10,10 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link io.appium.java_client.pagefactory.iOSFindAll} + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindByAllSet} instead + * It is recommended to use XCUITest */ @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindByChainSet.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindByChainSet.java index 5b6865dd1..7a3493383 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindByChainSet.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindByChainSet.java @@ -10,6 +10,10 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link io.appium.java_client.pagefactory.iOSFindBys} + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindByChainSet} instead + * It is recommended to use XCUITest */ @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindBySet.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindBySet.java index 2f876b878..4656f3c7e 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindBySet.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindBySet.java @@ -26,6 +26,10 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link io.appium.java_client.pagefactory.iOSFindBy} + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindBySet} instead + * It is recommended to use XCUITest */ @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) diff --git a/src/main/java/io/appium/java_client/pagefactory/iOSFindBys.java b/src/main/java/io/appium/java_client/pagefactory/iOSFindBys.java index 83e81298f..7f1b14515 100644 --- a/src/main/java/io/appium/java_client/pagefactory/iOSFindBys.java +++ b/src/main/java/io/appium/java_client/pagefactory/iOSFindBys.java @@ -27,8 +27,13 @@ /** * Used to mark a field on a Page Object to indicate that lookup should use * a series of {@link io.appium.java_client.pagefactory.iOSBy} tags. + * + * @deprecated UIAutomation is going to get deprecated. + * Use {@link iOSXCUITFindBys} instead + * It is recommended to use XCUITest */ -@Retention(RUNTIME) @Target({FIELD, TYPE}) +@Retention(RUNTIME) +@Target({FIELD, TYPE}) @Repeatable(iOSFindByChainSet.class) public @interface iOSFindBys { /**