Skip to content

Commit 9d2c42f

Browse files
iOS element gesture test was improved
1 parent a8958d5 commit 9d2c42f

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package io.appium.java_client.ios;
1919

2020
import io.appium.java_client.AppiumDriver;
21-
import io.appium.java_client.MobileBy;
2221
import io.appium.java_client.MobileElement;
2322
import io.appium.java_client.MultiTouchAction;
2423
import io.appium.java_client.TouchAction;
@@ -133,17 +132,10 @@ public void TapSingleFingerTest() {
133132

134133
@Test
135134
public void elementGestureTest(){
136-
WebDriverWait wait = new WebDriverWait(driver, 5);
137-
MobileElement e = (MobileElement) driver.findElementsByClassName("UIAButton").get(5);
135+
MobileElement e = (MobileElement) driver.findElementByName("TextField1");
138136
e.tap(1, 1500);
139-
140-
wait.until(ExpectedConditions.alertIsPresent());
141-
Alert alert = driver.switchTo().alert();
142-
alert.accept();
143-
144-
MobileElement e2 = (MobileElement) driver.findElementByXPath("//UIAWindow[1]/UIAMapView[1]");
145-
e2.zoom();
146-
e2.swipe(2000);
147-
e2.pinch();
137+
e.zoom();
138+
e.swipe(2000);
139+
e.pinch();
148140
}
149141
}

0 commit comments

Comments
 (0)