android - Auto click on WebView -
how can perform click on webview java code? possible click on specified location (x,y)?
webview.performclick()
doesn't work!
you can injecting javascript webview using loadurl():
mwebview.loadurl("javascript:<your javascript here>");
this example code perform click on element id 'button_submit':
mwebview = new webview(context); mwebview.getsettings().setjavascriptenabled(true); mwebview.loadurl("javascript:getelementbyid('button_submit').click();");
Comments
Post a Comment