Reputation: 3734
I need to create c# code to go to site, fill in form submit record.
I have tried using seleniumhq but this creates tests..I need more of a script i can run once to help me register some users for my site
any ideas??
Upvotes: 3
Views: 2803
Reputation: 11519
You can create c# code that posts data to the form page for the site that you are trying to register the people for. Otherwise depending on the browser you could use something like iMacros to automate the form filling. The other answers are also correct. Unless it is a site you control none of these methods will work if the site uses captcha or other methods to prevent automatic form filling.
Edit: Something like http://geekswithblogs.net/rakker/archive/2006/04/21/76044.aspx would be a good start.
Upvotes: 1
Reputation: 371
i would use an HttpWebRequest Object to submit the form, a quick google found this:
http://netomatix.com/HttpPostData.aspx
Upvotes: 0