File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
utam-core/src/main/java/utam/core/selenium/appium Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,10 @@ final AppiumDriver switchToWebView(String title) {
100100 // For the Appium chromedriver limitation to handle multiple WebViews,
101101 // If switch to context fail to find the target WebView, then switch to
102102 // use window
103- if (mobilePlatform == MobilePlatformType .ANDROID
103+ if (( mobilePlatform == MobilePlatformType .ANDROID
104104 || mobilePlatform == MobilePlatformType .ANDROID_PHONE
105- || mobilePlatform == MobilePlatformType .ANDROID_TABLET ) {
105+ || mobilePlatform == MobilePlatformType .ANDROID_TABLET )
106+ && !isNativeContext ()) {
106107 Set <String > windowHandles = appiumDriver .getWindowHandles ();
107108 for (String windowHandle : windowHandles ) {
108109 if (!windowHandle .equals (NATIVE_CONTEXT_HANDLE )) {
You can’t perform that action at this time.
0 commit comments