Skip to content

Commit 4977cb8

Browse files
appium#129 appium#130 The diagonal swiping was removed
1 parent 814e011 commit 4977cb8

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@ public void tap(int fingers, int duration) {
7575
public void zoom() {
7676
((AppiumDriver) parent).zoom(this);
7777
}
78-
79-
@Override
80-
// the swiping is performed from the upper left corner to
81-
// the lower right
82-
public void swipe(int duration) {
83-
Dimension size = this.getSize();
84-
Point location = this.getLocation();
85-
((AppiumDriver) parent).swipe(location.x, location.y,
86-
location.x + size.getWidth(), location.y + size.getHeight(),
87-
duration);
88-
}
8978

9079

9180
@Override

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,6 @@ public interface TouchableElement extends WebElement {
4040
public void zoom();
4141

4242
/**
43-
* Convenience method for swiping across the given element
44-
*
45-
* @param duration
46-
* amount of time in milliseconds for the entire swipe action to
47-
* take
48-
*/
49-
public void swipe(int duration);
50-
51-
/**
5243
* Convenience method for swiping on the given element to the given direction
5344
*
5445
* @param direction UP, DOWN, LEFT, RIGHT

src/test/java/io/appium/java_client/android/AndroidGestureTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public void elementGestureTest(){
105105
e.tap(1, 1500);
106106
MobileElement e2 = (MobileElement) driver.findElement(MobileBy.AccessibilityId("Activity"));
107107
e2.zoom();
108-
e2.swipe(2000);
109108
e2.swipe(SwipeElementDirection.UP,2000);
110109
e2.swipe(SwipeElementDirection.DOWN,2000);
111110
e2.swipe(SwipeElementDirection.RIGHT,1000);

src/test/java/io/appium/java_client/ios/iOSGestureTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ public void elementGestureTest(){
136136
MobileElement e = (MobileElement) driver.findElementByName("TextField1");
137137
e.tap(1, 1500);
138138
e.zoom();
139-
e.swipe(2000);
140139
e.pinch();
141140
e.swipe(SwipeElementDirection.UP,2000);
142141
e.swipe(SwipeElementDirection.DOWN,2000);

0 commit comments

Comments
 (0)