Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Commit

Permalink
altered tests and added getCurrentContext method`
Browse files Browse the repository at this point in the history
  • Loading branch information
amuthan-sakthivel authored and asolntsev committed May 22, 2023
1 parent bea6dcf commit 6a1bebd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/java/integration/android/ContextTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package integration.android;

import com.codeborne.selenide.Stopwatch;
import io.appium.java_client.AppiumBy;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -25,6 +26,7 @@ void contexts() {
openAndroidDeepLink("mydemoapprn://webview", "com.saucelabs.mydemoapp.rn");
$(AppiumBy.accessibilityId("URL input field")).shouldBe(visible).setValue("www.google.com");
$(AppiumBy.accessibilityId("Go To Site button")).shouldBe(visible).click();
Stopwatch.sleepAtLeast(4000);
setContext("WEBVIEW_com.saucelabs.mydemoapp.rn");

assertThat(getContextHandles())
Expand Down

0 comments on commit 6a1bebd

Please sign in to comment.