Skip to content

Commit

Permalink
deprecate UIAutomation for iOS (#1074)
Browse files Browse the repository at this point in the history
* depreacte UIAutomation for iOS

* fix review

* added deprecation description
  • Loading branch information
saikrishna321 authored and SrinivasanTarget committed Dec 24, 2018
1 parent 1e80714 commit 0cb3fcb
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import java.util.List;

@Deprecated
public interface FindsByIosUIAutomation<T extends WebElement> extends FindsByFluentSelector<T> {
/**
* Method performs the searching for a single element by iOS UIAutomation selector
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/appium/java_client/MobileBy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand Down

0 comments on commit 0cb3fcb

Please sign in to comment.