Skip to content

Commit 594796a

Browse files
authored
Merge pull request #36 from browserstack/sample_modification_appa11y
added step for new version of app
2 parents 2092c7d + 1bcd892 commit 594796a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
-2.15 MB
Binary file not shown.

android/testng-examples/src/test/java/com/browserstack/FirstTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ public class FirstTest extends AppiumTest {
1515

1616
@Test
1717
public void test() throws Exception {
18+
WebElement skipButton = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30)).until(
19+
ExpectedConditions.presenceOfElementLocated(AppiumBy.id("org.wikipedia.alpha:id/fragment_onboarding_skip_button")));
20+
skipButton.click();
21+
1822
WebElement searchElement = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30)).until(
1923
ExpectedConditions.elementToBeClickable(AppiumBy.accessibilityId("Search Wikipedia")));
2024

0 commit comments

Comments
 (0)