Skip to content

Commit 676e8ef

Browse files
committed
updated useractions
1 parent 8243b49 commit 676e8ef

File tree

1 file changed

+12
-51
lines changed

1 file changed

+12
-51
lines changed

src/main/java/com/core/UserActions.java

+12-51
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ public void click(MobileElement element) {
119119
}
120120
}
121121

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+
// }
127127

128128
/**
129129
* Click on element with timeout
@@ -321,13 +321,13 @@ public boolean isTextPresent(String containsText) throws Exception {
321321
return false;
322322
}
323323

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+
// }
331331

332332
/**
333333
* Swipe Down
@@ -1309,45 +1309,6 @@ public boolean isExistsByXpath(String xpath) {
13091309
return false;
13101310
}
13111311

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-
13511312
protected void catchBlock(Exception e) {
13521313
counter = 0;
13531314
logger.error("Error Description", e);

0 commit comments

Comments
 (0)