Skip to content

Commit 67112e6

Browse files
Delete deprecated methods (#1077)
* Delete deprecated methods * Fix widget tests * Make checkstyle happy
1 parent f6ebeb2 commit 67112e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+60
-3281
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.openqa.selenium.Capabilities;
2323
import org.openqa.selenium.WebDriverException;
2424
import org.openqa.selenium.WebElement;
25-
import org.openqa.selenium.interactions.Mouse;
2625
import org.openqa.selenium.remote.CommandExecutor;
2726
import org.openqa.selenium.remote.RemoteWebDriver;
2827
import org.openqa.selenium.remote.Response;
@@ -156,13 +155,6 @@ public List findElementsByXPath(String using) {
156155
return super.findElementsByXPath(using);
157156
}
158157

159-
/**
160-
* Mouse doesn't work on mobile devices and emulators.
161-
*/
162-
@Deprecated public Mouse getMouse() {
163-
return super.getMouse();
164-
}
165-
166158
@Override
167159
public String toString() {
168160
return String.format("%s, Capabilities: %s", getClass().getCanonicalName(),

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

Lines changed: 0 additions & 53 deletions
This file was deleted.

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

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ protected String getLocatorString() {
6363
.findElement(selector.toString(), getLocatorString());
6464
}
6565

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-
8066
/**
8167
* Read http://developer.android.com/intl/ru/tools/testing-support-library/
8268
* index.html#uia-apis
@@ -162,69 +148,6 @@ public static By image(final String b64Template) {
162148
public static By custom(final String selector) {
163149
return new ByCustom(selector);
164150
}
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-
}
228151

229152

230153
public static class ByAndroidUIAutomator extends MobileBy implements Serializable {

0 commit comments

Comments
 (0)