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

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -