# Cordova 10 iOS project "Cannot find any WEBVIEW to switch to"

**URL:** <https://forum.katalon.com/t/cordova-10-ios-project-cannot-find-any-webview-to-switch-to/82032>\
**Category:** Mobile Testing\
**Tags:** ios, cordova, angularjs, mobile-testing, katalon-studio\
**Created:** [January 4, 2023, 8:31am UTC](https://forum.katalon.com/t/cordova-10-ios-project-cannot-find-any-webview-to-switch-to/82032 "2023-01-04T08:31:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferdinandlim](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferdinandlim/32/20464_2.png) [@ferdinandlim](https://forum.katalon.com/u/ferdinandlim)\
**Post date:** [January 4, 2023, 8:31am UTC](https://forum.katalon.com/t/cordova-10-ios-project-cannot-find-any-webview-to-switch-to/82032/1 "2023-01-04T08:31:00Z")

</div>

Hi all,

I am using Cordova 10 to create an iOS application using AngularJS. I’m still at the stage of the “Login Authentication” page of the app, but is already facing issues. The app opens with the BundleID. After the app loads, I added a delay to ensure the loading finishes (though I wish to have a “wait for element to appear” rule, but I cannot even detect the Webview, let alone the DOM in it). Then tries to enter a password, and login.

I am able to use the Katalon Recorder to identify the elements (requires switch to WebView on every page changed and a delay added). Using the recorder, I am also able to create the steps below.

 ![Steps created](https://europe1.discourse-cdn.com/katalon/original/3X/7/f/7fda9032c4304970aebdda5adba12e94af85f8b1.png)

But when I try to run this test case, it gets suck on step 3, with the error “Cannot find any WEBVIEW to switch to”.

 ![Screenshot 2023-01-04 at 4.17.48 PM](https://europe1.discourse-cdn.com/katalon/original/3X/3/2/32b4cda8fe9f51310a4dc02936781721a8a3eb86.jpeg)

Any idea how do we actually get the app to detect the DOM in the Cordova WebView?

I tried removing step 3 and 4 and go straight to 5: Set Text, but another error is shown.

 ![Screenshot 2023-01-04 at 4.23.55 PM](https://europe1.discourse-cdn.com/katalon/original/3X/4/7/47dab4cd068a1ae5f3f4056af54e07f3f4a6eb68.png)  
 ![Screenshot 2023-01-04 at 4.25.00 PM](https://europe1.discourse-cdn.com/katalon/original/3X/9/2/9231431c0ffb838ddce05d69babf89a1539d5667.jpeg)

I have seen posts from these articles that are unanswered:  
[Article 1](http://forum.katalon.com/t/switch-to-webview-is-not-working-in-ios-real-device/14256)  
[Article 2](http://forum.katalon.com/t/unable-to-switch-the-driver-to-webview-mode-root-cause-cannot-find-any-webview-to-switch-to/14355)  
[Article 3](https://forum-update.katalon.com/t/issue-in-cordova-app/8820)

 ![Screenshot 2023-01-04 at 4.29.31 PM](https://europe1.discourse-cdn.com/katalon/original/3X/6/9/69546127951203678f9f97cf06c5e7ef213fe81f.png)  
This response specifically is worrying.

Would appreciate if someone could let me know what I did wrong here.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [January 12, 2023, 8:34am UTC](https://forum.katalon.com/t/cordova-10-ios-project-cannot-find-any-webview-to-switch-to/82032/2 "2023-01-12T08:34:41Z")

</div>

Hi,

Have you enable Web Inspector as following: [[Mobile] Switch To Web View | Katalon Docs](https://docs.katalon.com/docs/author/keywords/keyword-description-in-katalon-studio/mobile-keywords/mobile-switch-to-web-view)

---

<div class="post-metadata">

**Author:** ![ferdinandlim](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ferdinandlim/32/20464_2.png) [@ferdinandlim](https://forum.katalon.com/u/ferdinandlim)\
**Post date:** [January 15, 2023, 4:25pm UTC](https://forum.katalon.com/t/cordova-10-ios-project-cannot-find-any-webview-to-switch-to/82032/3 "2023-01-15T16:25:39Z")

</div>

Hi,

Thanks for the reply.

Yes, I did that as I need to debug the Cordova project while developing too. So definitely it is done. I can see the DOM elements when I use the recorder and click on switch to WebView. but after setting up the test case, when I run it, I see the error above.
