Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi; how i can make Auto Submitter ? i want to make program or web application can make auto registration for web sites i want and then auto fill forms from profile and anther data ?
Posted
Comments
Prasad Khandekar 11-Apr-13 11:00am    
What have you tried so far? Is this your own website?
MBekhit 15-Apr-13 7:49am    
I still working on it thank you for your solution .

1 solution

Here is a method I have used as a Windows Forms Application...
On a form add a WebBrowser control and a button
Behind the button .Navigate to your chosen web site
Convert the WebBrowser's .Document to a HtmlDocument and you can then access the elements in the page
For example this snippet selects a value on a dropdown list containing Area codes and then clicks the submit button
HtmlDocument md ;
md = (HtmlDocument)webBrowser1.Document;
md.GetElementById("AreaID").SetAttribute("value", "109");
md.GetElementById("cmdSubmit").InvokeMember("click");

This won't necessarily work for all webforms and you will need to work out what the element Ids are

Here is an article that uses a similar method http://scyanide.com/2009/07/use-c-sharp-to-fill-out-web-forms/[^] there are probably many more
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900