File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
src/test/java/io/appium/java_client/ios Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 1818package io .appium .java_client .ios ;
1919
2020import io .appium .java_client .AppiumDriver ;
21- import io .appium .java_client .MobileBy ;
2221import io .appium .java_client .MobileElement ;
2322import io .appium .java_client .MultiTouchAction ;
2423import 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}
You can’t perform that action at this time.
0 commit comments