@@ -119,11 +119,11 @@ public void click(MobileElement element) {
119
119
}
120
120
}
121
121
122
- protected void scrollClick (String scrollableListId , String selectionText ) {
123
- driver .findElementByAndroidUIAutomator ("new UiScrollable(new UiSelector().scrollable(true)."
124
- + "resourceId(\" " + scrollableListId + "\" ))"
125
- + ".setAsHorizontalList().scrollIntoView(new UiSelector().text(\" " + selectionText + "\" ))" ).click ();
126
- }
122
+ // protected void scrollClick(String scrollableListId, String selectionText) {
123
+ // driver.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true)."
124
+ // + "resourceId(\"" + scrollableListId + "\"))"
125
+ // + ".setAsHorizontalList().scrollIntoView(new UiSelector().text(\"" + selectionText + "\"))").click();
126
+ // }
127
127
128
128
/**
129
129
* Click on element with timeout
@@ -321,13 +321,13 @@ public boolean isTextPresent(String containsText) throws Exception {
321
321
return false ;
322
322
}
323
323
324
- /**
325
- * Press Back
326
- */
327
- public void pressBack () {
328
- driver .pressKey (new KeyEvent (AndroidKey .BACK ));
329
- logInfo ("Press Back" );
330
- }
324
+ // /**
325
+ // * Press Back
326
+ // */
327
+ // public void pressBack() {
328
+ // driver.pressKey(new KeyEvent(AndroidKey.BACK));
329
+ // logInfo("Press Back");
330
+ // }
331
331
332
332
/**
333
333
* Swipe Down
@@ -1309,45 +1309,6 @@ public boolean isExistsByXpath(String xpath) {
1309
1309
return false ;
1310
1310
}
1311
1311
1312
- /**
1313
- * Click by see
1314
- *
1315
- * @param element element
1316
- */
1317
- private void clickBySee (String element ) {
1318
- try {
1319
- client .click ("1" , element , 1 , 1 );
1320
- } catch (Exception e ) {
1321
- logger .error (e );
1322
- }
1323
- }
1324
-
1325
- /**
1326
- * Get text by see
1327
- *
1328
- * @param element element
1329
- */
1330
- private void getTextBySee (String element ) {
1331
- try {
1332
- client .elementGetText ("1" , element , 1 );
1333
- } catch (Exception e ) {
1334
- logger .error (e );
1335
- }
1336
- }
1337
-
1338
- /**
1339
- * Swipe while not found
1340
- *
1341
- * @param element element
1342
- */
1343
- private void swipeWhileNotFoundBySee (String element ) {
1344
- try {
1345
- client .swipeWhileNotFound ("UP" , 1 , 100 , "1" , "element" , 1 , 10 , 2 , true );
1346
- } catch (Exception e ) {
1347
- logger .error (e );
1348
- }
1349
- }
1350
-
1351
1312
protected void catchBlock (Exception e ) {
1352
1313
counter = 0 ;
1353
1314
logger .error ("Error Description" , e );
0 commit comments