nedhulton 0 Posted January 5, 2015 Report Share Posted January 5, 2015 (edited) I want my bot to be able to submit forms. I also want to work out (automatically) whether or not the bot was successful (whether or not the form actually was submitted). Here is an example: http://fraserellis.co.uk/contact-us/ So I need a way to monitor whether the JavaScript submit happens or not. Could this be done by monitoring the HTTP POST requests sent by the UBOT browser? Could this be done by inserting JavaScript into the page like this onsubumit function? function hello() { alert("The form was submitted");} var formS = document.getElementsByTagName("form");var form = formS[0];form.setAttribute("onsubmit", "hello()"); Then when the form is submitted by the bot the alert message or some other action triggers. Please help. Edited January 5, 2015 by nedhulton Quote Link to post Share on other sites
Bot-Factory 602 Posted January 5, 2015 Report Share Posted January 5, 2015 You can see that by looking at the website that is shown after you submit the form. Depending on what the site gives you, you can search for that element or data. Like SUCCESS or ERROR. Dan Quote Link to post Share on other sites
nedhulton 0 Posted January 5, 2015 Author Report Share Posted January 5, 2015 You can see that by looking at the website that is shown after you submit the form. Depending on what the site gives you, you can search for that element or data. Like SUCCESS or ERROR. Dan I am actually looking to submit multiple forms. So this option would not be available in my case. Quote Link to post Share on other sites
nedhulton 0 Posted January 5, 2015 Author Report Share Posted January 5, 2015 Problem solved. Thanks everybody Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.