Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created October 7, 2021 00:35
Show Gist options
  • Save dannyshain/933dcac0e8276af67d9b7192ef640ae2 to your computer and use it in GitHub Desktop.
Save dannyshain/933dcac0e8276af67d9b7192ef640ae2 to your computer and use it in GitHub Desktop.
MobileElement source = (MobileElement) new WebDriverWait(driver, 30)
.until(elementToBeClickable(MobileBy.AccessibilityId("slider")));
driver.addCommand(HttpMethod.POST, String.format("/session/%s/plugin/actions/swipe", driver.getSessionId()), "swipe");
driver.execute("swipe", ImmutableMap.of("elementId", source.getId(), "percentage", 50));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment