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??
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.
If you are trying to automate mouse clicks and keyboard strokes, you can try AutoIt.
i would use an HttpWebRequest Object to submit the form, a quick google found this:
http://netomatix.com/HttpPostData.aspx
http://watin.sourceforge.net
精彩评论