Saeid
Saeid

Reputation: 2321

Fill a webpage fields automatic

It's possible that my application send values and fill a webpage fields automatic?

for example : after clicking on a button in my app , the app open a Specified webpage and fill The Fields with my values - like user & password

Edited :

And It's possible that my application after sending values and fill a webpage fields , Click Submit Button automatic?

Upvotes: 0

Views: 118

Answers (1)

Greg Ennis
Greg Ennis

Reputation: 15379

Make sure you have called

webView.getSettings().setJavaScriptEnabled(true);

Write a javascript function to do what you want and then you can call it like this:

webView.loadUrl("javascript:myfunction('first', 'last')");

for example.

Upvotes: 1

Related Questions