flavone / nativedriver

Automatically exported from code.google.com/p/nativedriver
Apache License 2.0
0 stars 0 forks source link

Working with Android Native Classes such as WebView errors at Runtime #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In order to extract the current URL, using  GetUrl() find a WebView on screen.

this gives no error at runtime: 
driver.findAndroidNativeElements(AndroidNativeBy.id("myWebview")); 

this errors at runtime:
WebView webView = 
(WebView)driver.findAndroidNativeElements(AndroidNativeBy.id("myWebview")); 

with the error:
java.lang.NoClassDefFoundError: android/webkit/WebView 

Original issue reported on code.google.com by jgibson....@gmail.com on 24 Feb 2012 at 9:24