I'm trying to verify page content rendered through webview by my
android app pro grammatically. Using javascript I'm able get the value
of those.
For example
document.getElementById("color-link-box-
top").getElementsByTagName("p")[0].innerHTML
above line returns me string value within javascript, but now I want
to get that string value back in my java test application using
something like below code.
mWebView.loadUrl("javascript:window.demo.value =
document.getElementById(\"color-link-box-top
\").getElementsByTagName(\"p\")[0].innerHTML");
I tried addJavaInterface method of webview & tried passing string as
member and through method, but none seems to work.
Please help,
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en