Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate UIAutomation for iOS #1074

Merged
merged 3 commits into from
Dec 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add @deprecated description

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

* {@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