Jump to content

form filler


bird42
 Share

Recommended Posts

Hello all,

i need a script to complete surveys for me... something like this:

open firefox

go to specified URL

wait till loaded

fill forms

submit

wait till loaded

check new URL

repeat

Could someone please suggest me the best way to do this?

Link to comment
Share on other sites

  • Moderators

Must it be Firefox? If so, look at the FF UDF in the Examples forum. If you want to do with IE you can look at the IE functions built into AutoIt.

An example of the form, or the URL you're going to, would go a long way to helping us help you :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

i love this forum 'cause it is full of kind helpful peoples :) thank you!

Well, it does not have to be firefox... I tried both, but i always get messy code :(

I'll try to get an html example. Anyway there are textboxes, radio buttons, drop down menus and checkboxes usually.

Link to comment
Share on other sites

  • Moderators

Depending on the type of form, and whether the fields are "visible" in the html or hidden inside a bunch of javascript, it is usually easier to use the IE functions, in my own experience. Post what you can find, and we'll do what we can to help ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

You could also simply use a custom URL to dynamically populate the form. It depends on how the form is built but in many cases you can do that.

Along these lines, sometimes you can use something like 'curl' to post without requiring a browser at all.

Example: You can start a job in Jenkins via curl (same as logging in, and clicking the build button on a job).

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...