Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Login Program

Login Program

Scheduled Pinned Locked Moved C#
helpphpcomtutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Little_Dice
    wrote on last edited by
    #1

    Hi 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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups