diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsBy.java b/src/main/java/io/appium/java_client/pagefactory/WindowsBy.java index e953db2fc..3c599c326 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsBy.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsBy.java @@ -18,7 +18,9 @@ /** * Used to build a complex Windows automation locator. + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated public @interface WindowsBy { /** diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindAll.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindAll.java index 206c1dd08..ac1d0d0a5 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindAll.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindAll.java @@ -29,7 +29,9 @@ * of {@link WindowsBy} tags * It will then search for all elements that match any criteria. Note that elements * are not guaranteed to be in document order. + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Retention(RUNTIME) @Target({FIELD, TYPE}) @Repeatable(WindowsFindByAllSet.class) public @interface WindowsFindAll { diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java index 2222d0312..f1c67be98 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBy.java @@ -30,7 +30,9 @@ * {@link org.openqa.selenium.support.PageFactory} * this allows users to quickly and easily create PageObjects. * using Windows automation selectors, accessibility, id, name, class name, tag and xpath + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Retention(RUNTIME) @Target({FIELD, TYPE}) @Repeatable(WindowsFindBySet.class) public @interface WindowsFindBy { diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindByAllSet.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindByAllSet.java index 31caf953d..f93e00d92 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindByAllSet.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindByAllSet.java @@ -10,7 +10,9 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link WindowsFindAll} + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) public @interface WindowsFindByAllSet { diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindByChainSet.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindByChainSet.java index b6518ba6a..b8a3e9f23 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindByChainSet.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindByChainSet.java @@ -10,7 +10,9 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link WindowsFindBys} + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) public @interface WindowsFindByChainSet { diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBySet.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBySet.java index 2f7cda9f4..e953d63a1 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBySet.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBySet.java @@ -26,7 +26,9 @@ /** * Defines set of chained/possible locators. Each one locator * should be defined with {@link WindowsFindBy} + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Target(value = {TYPE, FIELD}) @Retention(value = RUNTIME) public @interface WindowsFindBySet { diff --git a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBys.java b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBys.java index 9120a41d6..358a77ae8 100644 --- a/src/main/java/io/appium/java_client/pagefactory/WindowsFindBys.java +++ b/src/main/java/io/appium/java_client/pagefactory/WindowsFindBys.java @@ -27,7 +27,9 @@ /** * Used to mark a field on a Page Object to indicate that lookup should use * a series of {@link WindowsBy} tags. + * @deprecated This annotation is deprecated and will be removed. */ +@Deprecated @Retention(RUNTIME) @Target({FIELD, TYPE}) @Repeatable(WindowsFindByChainSet.class) public @interface WindowsFindBys {