Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Jan 17, 2024
1 parent 54dd145 commit be3de66
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import io.appium.uiautomator2.unittest.test.internal.BaseTest;
import io.appium.uiautomator2.unittest.test.internal.Response;

import static io.appium.uiautomator2.unittest.test.internal.TestUtils.waitForElement;
import static io.appium.uiautomator2.unittest.test.internal.commands.DeviceCommands.findElement;
import static io.appium.uiautomator2.unittest.test.internal.commands.DeviceCommands.performActions;
import static io.appium.uiautomator2.unittest.test.internal.commands.ElementCommands.click;
Expand Down Expand Up @@ -73,11 +74,12 @@ private void verifyDragResult() {

private void setupDragDropView() throws JSONException {
startActivity(".view.DragAndDropDemo");
waitForElement(By.id("io.appium.android.apis:id/drag_explanation"));
}

private void setupEditView() throws JSONException {
startActivity(".app.AlertDialogSamples");
Response response = findElement(By.accessibilityId("Text Entry dialog"));
Response response = waitForElement(By.accessibilityId("Text Entry dialog"));
clickAndWaitForStaleness(response.getElementId());
}

Expand Down

0 comments on commit be3de66

Please sign in to comment.