Automate Filling Forms on Webpages
Filling a web form is a common task for both testing and automation that is easily performed using WebExecute.
Start a new web session.
Locate the query box for Wolfram|Alpha.
Note that there are several supported ways to locate the box.
Type the query—in this case, a question about grizzly bears.
Submit the form.
Evaluate JavaScript to get back a specific attribute containing the result.
Make a function that performs a search.
Try out the new function.