tags:

views:

80

answers:

4

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??

A: 

If you are trying to automate mouse clicks and keyboard strokes, you can try AutoIt.

Lee Sy En
i need a c# code basically i need function that i can run to fill in this form
WingMan20-10
A: 

i would use an HttpWebRequest Object to submit the form, a quick google found this:

http://netomatix.com/HttpPostData.aspx

timh
A: 

http://watin.sourceforge.net

Xaqron
+1  A: 

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.

controlfreak123
ok, can u get me started with the c# code?
WingMan20-10
ok thanks this is perfect..when i post is there way i can get auth code from the page that i post to?
WingMan20-10
I'm not sure I understand what you mean by auth code? Is there some sort of authorization that your registration pages are doing?
controlfreak123