0

I am trying to automate mobile app in android (6.0.1) using appium. i am getting error as

No such context found.

While switching from Native to Webview,I am getting Webview as

WEBVIEW_undefined

Please help.Thanks in advance

akash mahato
  • 57
  • 1
  • 10

1 Answers1

1

With new UIautomator you don't need to switch your driver to webview. It has built in capabilities to identify the elements inside webView.

Please update your Android SDK once.

And also you can see the elements inside webView on Android 6.0+ devices using UIAutomator.

Vinod
  • 956
  • 7
  • 15
  • I need to automate in 5.0 and 5.1 OS versions also. For that i have to switch it to webview. Therefore i am trying to write a script which will be applicable to automate in multiple OS versions – akash mahato Jan 18 '17 at 15:29
  • @akashmahato Even if you want to run on different versions of Android, you don't need to switch the driver to webview, it automatically handles that. Automate the script using a device with OS Version 6.0+ and after automating the same script for other versions(5.0 or 7.0). It will work on all versions. I am doing the same thing. – Vinod Jan 19 '17 at 09:00
  • @Vinod I fail to find any further info on this. Care to elaborate on how exactly to use CSS selectors without switching to web context? Thanks! – Jürgen 'Kashban' Wahlmann Aug 21 '18 at 11:27