11package io .appium .java_client ;
22
3- import static org .junit .Assert .assertEquals ;
4- import static org .junit .Assert .assertTrue ;
53import io .appium .java_client .remote .MobileCapabilityType ;
64import io .appium .java_client .remote .MobilePlatform ;
7-
8- import java .io .File ;
9- import java .net .URL ;
10- import java .util .List ;
11-
125import org .junit .After ;
136import org .junit .Before ;
147import org .junit .Test ;
158import org .openqa .selenium .WebElement ;
169import org .openqa .selenium .remote .DesiredCapabilities ;
1710
11+ import java .io .File ;
12+ import java .net .URL ;
13+ import java .util .List ;
14+
15+ import static org .junit .Assert .assertEquals ;
16+ import static org .junit .Assert .assertTrue ;
17+
1818/**
1919 * Test -android uiautomator locator strategy
2020 */
@@ -39,28 +39,6 @@ public void tearDown() throws Exception {
3939 driver .quit ();
4040 }
4141
42- @ Test
43- public void complexFind () {
44- String animation = String .format ("[\" scroll\" ,[[3,\" %1$s\" ]],[[7,\" %1$s\" ]]]" , "animation" );
45- String cloning = String .format ("[\" scroll\" ,[[3,\" %1$s\" ]],[[7,\" %1$s\" ]]]" , "cloning" );
46-
47- driver .complexFind (animation ).click ();
48- driver .complexFind (cloning ).click ();
49- }
50-
51- @ Test
52- public void scrollTo () {
53- driver .scrollTo ("animation" ).click ();
54- driver .scrollTo ("cloning" ).click ();
55- }
56-
57- @ Test
58- public void scrollToExact () {
59- driver .scrollToExact ("Animation" ).click ();
60- driver .scrollToExact ("Cloning" ).click ();
61- }
62-
63-
6442 @ Test
6543 public void findElementTest () {
6644 WebElement element = driver .findElementByAndroidUIAutomator ("new UiSelector().index(0)" );
0 commit comments