@@ -63,20 +63,6 @@ protected String getLocatorString() {
63
63
.findElement (selector .toString (), getLocatorString ());
64
64
}
65
65
66
- /**
67
- * Read https://developer.apple.com/library/tvos/documentation/DeveloperTools/
68
- * Conceptual/InstrumentsUserGuide/UIAutomation.html
69
- *
70
- * @param iOSAutomationText is iOS UIAutomation string
71
- * @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
75
- */
76
- public static By IosUIAutomation (final String iOSAutomationText ) {
77
- return new ByIosUIAutomation (iOSAutomationText );
78
- }
79
-
80
66
/**
81
67
* Read http://developer.android.com/intl/ru/tools/testing-support-library/
82
68
* index.html#uia-apis
@@ -162,69 +148,6 @@ public static By image(final String b64Template) {
162
148
public static By custom (final String selector ) {
163
149
return new ByCustom (selector );
164
150
}
165
-
166
- public static class ByIosUIAutomation extends MobileBy implements Serializable {
167
-
168
- public ByIosUIAutomation (String iOSAutomationText ) {
169
- super (MobileSelector .IOS_UI_AUTOMATION , iOSAutomationText );
170
- }
171
-
172
- /**
173
- * {@inheritDoc}
174
- *
175
- * @throws WebDriverException when current session doesn't support the given selector or when
176
- * value of the selector is not consistent.
177
- * @throws IllegalArgumentException when it is impossible to find something on the given
178
- * {@link SearchContext} instance
179
- */
180
- @ SuppressWarnings ("unchecked" )
181
- @ Override
182
- public List <WebElement > findElements (SearchContext context ) throws WebDriverException ,
183
- IllegalArgumentException {
184
- Class <?> contextClass = context .getClass ();
185
-
186
- if (FindsByIosUIAutomation .class .isAssignableFrom (contextClass )) {
187
- return FindsByIosUIAutomation .class .cast (context )
188
- .findElementsByIosUIAutomation (getLocatorString ());
189
- }
190
-
191
- if (FindsByFluentSelector .class .isAssignableFrom (contextClass )) {
192
- return super .findElements (context );
193
- }
194
-
195
- throw formIllegalArgumentException (contextClass , FindsByIosUIAutomation .class ,
196
- FindsByFluentSelector .class );
197
- }
198
-
199
- /**
200
- * {@inheritDoc}
201
- *
202
- * @throws WebDriverException when current session doesn't support the given selector or when
203
- * value of the selector is not consistent.
204
- * @throws IllegalArgumentException when it is impossible to find something on the given
205
- * {@link SearchContext} instance
206
- */
207
- @ Override public WebElement findElement (SearchContext context ) throws WebDriverException ,
208
- IllegalArgumentException {
209
- Class <?> contextClass = context .getClass ();
210
-
211
- if (FindsByIosUIAutomation .class .isAssignableFrom (contextClass )) {
212
- return ((FindsByIosUIAutomation <?>) context )
213
- .findElementByIosUIAutomation (getLocatorString ());
214
- }
215
-
216
- if (FindsByFluentSelector .class .isAssignableFrom (contextClass )) {
217
- return super .findElement (context );
218
- }
219
-
220
- throw formIllegalArgumentException (contextClass , FindsByIosUIAutomation .class ,
221
- FindsByFluentSelector .class );
222
- }
223
-
224
- @ Override public String toString () {
225
- return "By.IosUIAutomation: " + getLocatorString ();
226
- }
227
- }
228
151
229
152
230
153
public static class ByAndroidUIAutomator extends MobileBy implements Serializable {
0 commit comments