Skip to content

Commit

Permalink
Merge pull request #36 from browserstack/sample_modification_appa11y
Browse files Browse the repository at this point in the history
added step for new version of app
  • Loading branch information
kamal-kaur04 authored Dec 18, 2024
2 parents 2092c7d + 1bcd892 commit 594796a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified android/testng-examples/WikipediaSample.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public class FirstTest extends AppiumTest {

@Test
public void test() throws Exception {
WebElement skipButton = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30)).until(
ExpectedConditions.presenceOfElementLocated(AppiumBy.id("org.wikipedia.alpha:id/fragment_onboarding_skip_button")));
skipButton.click();

WebElement searchElement = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30)).until(
ExpectedConditions.elementToBeClickable(AppiumBy.accessibilityId("Search Wikipedia")));

Expand Down

0 comments on commit 594796a

Please sign in to comment.