开发者

fill form automatically

开发者 https://www.devze.com 2023-01-20 04:09 出处:网络
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 s

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

0

精彩评论

暂无评论...
验证码 换一张
取 消