Well I actually took a look at another guys source and it pulls up the web page in the program itself. So I just had to modify it. The only problem is there is no button (in the web site) after you input the username and password. The site uses the php post method. Like www.site.net/login.php?user=Myusername&password=mypassword. But they have mypassword encrypted. So right now i'm trying to find away to either have the web browser click the button (but not seeing one in the source code) I think I will have to go with a way to manually click it.
Little_Dice
Posts
-
Navigate the web -
Navigate the webAlright I finnally got everything working except the button. To my knowledge i don't see the button in the source code. It just says
Did you get my email? -- modified at 2:20 Tuesday 29th May, 2007
-
Navigate the webSo how would you go about selecting certain boxes. Like username and password, and then click a button.
Login
Username:
Password:
-
Login ProgramHi Ever since I read an article about test animation I have been trying to build a program to run and log me in to some of the many sites I check daily. However I have run into a few problems i can not get around. The site I read the article at is (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/) 1. when I have ie.DocumentComplete.WaitOne(); in the code i get the error The event 'SHDocVw.DWebBrowserEvents2_Event.DocumentComplete' can only appear on the left hand side of += or -= I don't understand why I am getting this error because it worked in the example 2. When debugging after i get to HTMLDocument doc = (HTMLDocument)ie.Document; in the cmd window i get this error Unable to cast COM object of type 'System._ComObject' to interface type 'mshtml.HTMLDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: No such interface supported >. internetExplorer ie = null; Process p = Process.Start("iexplore.exe", "site using php login"); InternetExplorer ie = // code to find correct IE HTMLDocument doc = (HTMLDocument)ie.Document; Console.WriteLine("Setting Text Box 1 to 'UserName'"); HTMLInputElement textBox = (HTMLInputElement)theDoc.getElementsByName("username"); textBox.value = "Bla"; Thanks for all the help