Switch To Web View not working

I have a script that is trying to sue Switch To Web View. The script runs fine until it reaches the Switch To Web View step then nothing happens. The script will just keep running without error but never moves past the Switch To Web View. Script Below. Any ideas on how to get this to work?

Running on Google Pixel XL 8.0 and Moto Z2 Force 7.1

Mobile.waitForElementPresent(findTestObject(‘android.widget.TextView1 - You are protected’), 0)




Have posted 3 other questions to this forum with no responses. Can someone please help with this

1 Like

Hello Jamie,

What are you tying to do? Are you trying to open the browser?
The switchToWebView is to work with Hybrid applications that have a webview embedded inside the mobile application. Than you can switch to inside that webview and capture objects as if you where in a web application… Don’t think tha’ts what you are trying to do in your code…