Skip to content

Commit 0cb3fcb

Browse files
saikrishna321SrinivasanTarget
authored andcommitted
deprecate UIAutomation for iOS (#1074)
* depreacte UIAutomation for iOS * fix review * added deprecation description
1 parent 1e80714 commit 0cb3fcb

9 files changed

+38
-3
lines changed

src/main/java/io/appium/java_client/FindsByIosUIAutomation.java

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import java.util.List;
2424

25+
@Deprecated
2526
public interface FindsByIosUIAutomation<T extends WebElement> extends FindsByFluentSelector<T> {
2627
/**
2728
* Method performs the searching for a single element by iOS UIAutomation selector

src/main/java/io/appium/java_client/MobileBy.java

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ protected String getLocatorString() {
6969
*
7070
* @param iOSAutomationText is iOS UIAutomation string
7171
* @return an instance of {@link io.appium.java_client.MobileBy.ByIosUIAutomation}
72+
*
73+
* @deprecated UIAutomation is going to get deprecated.
74+
* It is recommended to use XCUITest
7275
*/
7376
public static By IosUIAutomation(final String iOSAutomationText) {
7477
return new ByIosUIAutomation(iOSAutomationText);

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

+4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
*
5656
* @return the strategy which defines how to use locators which are described by the
5757
* {@link iOSFindBy} annotation
58+
*
59+
* @deprecated UIAutomation is going to get deprecated.
60+
* It is recommended to use XCUITest
5861
*/
62+
@Deprecated
5963
LocatorGroupStrategy iOSAutomation() default LocatorGroupStrategy.CHAIN;
6064

6165
/**

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@
2929
* of {@link io.appium.java_client.pagefactory.iOSBy} tags.
3030
* It will then search for all elements that match any criteria. Note that elements
3131
* are not guaranteed to be in document order.
32+
*
33+
* @deprecated UIAutomation is going to get deprecated.
34+
* Use {@link iOSXCUITFindAll} instead
35+
* It is recommended to use XCUITest
3236
*/
33-
@Retention(RUNTIME) @Target({FIELD, TYPE})
37+
@Retention(RUNTIME)
38+
@Target({FIELD, TYPE})
3439
@Repeatable(iOSFindByAllSet.class)
3540
public @interface iOSFindAll {
3641
/**

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@
3131
* {@link org.openqa.selenium.support.PageFactory}
3232
* this allows users to quickly and easily create PageObjects.
3333
* using iOS UI selectors, accessibility, id, name, class name, tag and xpath
34+
*
35+
* @deprecated UIAutomation is going to get deprecated.
36+
* Use {@link iOSXCUITFindBy} instead
37+
* It is recommended to use XCUITest
3438
*/
35-
@Retention(RUNTIME) @Target({FIELD, TYPE})
39+
@Retention(RUNTIME)
40+
@Target({FIELD, TYPE})
3641
@Repeatable(iOSFindBySet.class)
3742
public @interface iOSFindBy {
3843
/**

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

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
/**
1111
* Defines set of chained/possible locators. Each one locator
1212
* should be defined with {@link io.appium.java_client.pagefactory.iOSFindAll}
13+
*
14+
* @deprecated UIAutomation is going to get deprecated.
15+
* Use {@link iOSXCUITFindByAllSet} instead
16+
* It is recommended to use XCUITest
1317
*/
1418
@Target(value = {TYPE, FIELD})
1519
@Retention(value = RUNTIME)

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

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
/**
1111
* Defines set of chained/possible locators. Each one locator
1212
* should be defined with {@link io.appium.java_client.pagefactory.iOSFindBys}
13+
*
14+
* @deprecated UIAutomation is going to get deprecated.
15+
* Use {@link iOSXCUITFindByChainSet} instead
16+
* It is recommended to use XCUITest
1317
*/
1418
@Target(value = {TYPE, FIELD})
1519
@Retention(value = RUNTIME)

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

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
/**
2727
* Defines set of chained/possible locators. Each one locator
2828
* should be defined with {@link io.appium.java_client.pagefactory.iOSFindBy}
29+
*
30+
* @deprecated UIAutomation is going to get deprecated.
31+
* Use {@link iOSXCUITFindBySet} instead
32+
* It is recommended to use XCUITest
2933
*/
3034
@Target(value = {TYPE, FIELD})
3135
@Retention(value = RUNTIME)

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
/**
2828
* Used to mark a field on a Page Object to indicate that lookup should use
2929
* a series of {@link io.appium.java_client.pagefactory.iOSBy} tags.
30+
*
31+
* @deprecated UIAutomation is going to get deprecated.
32+
* Use {@link iOSXCUITFindBys} instead
33+
* It is recommended to use XCUITest
3034
*/
31-
@Retention(RUNTIME) @Target({FIELD, TYPE})
35+
@Retention(RUNTIME)
36+
@Target({FIELD, TYPE})
3237
@Repeatable(iOSFindByChainSet.class)
3338
public @interface iOSFindBys {
3439
/**

0 commit comments

Comments
 (0)