Is there any way to get access to DOM structure in Android's WebView? -


Is there any way to access the DOM structure in Android's webview? I need to check that some DOM objects exist on the page and then fire some events.

Thank you!

Not easily.

You can call loadUrl ("javascript: ...") , where ... to be executed in the current web page Javascript is a piece of code, if your "fire is in the context of some incidents" web page, then maybe it will be enough if you need a Java code to "set some events to fire", you also get the addJavaScriptInterface () to use javascript-> Java Bridge object will be required and to call your loadUrl ("javascript: .. ..") code, get your data back in Java.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -