bird42 Posted February 11, 2015 Posted February 11, 2015 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?
Moderators JLogan3o13 Posted February 11, 2015 Moderators Posted February 11, 2015 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!
bird42 Posted February 11, 2015 Author Posted February 11, 2015 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.
Moderators JLogan3o13 Posted February 11, 2015 Moderators Posted February 11, 2015 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!
Bert Posted February 11, 2015 Posted February 11, 2015 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. The Vollatran project My blog: http://www.vollysinterestingshit.com/
jdelaney Posted February 11, 2015 Posted February 11, 2015 (edited) 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 February 11, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now