javascript - .Net c# webbrowser fill input without id or classname -


I need to fill an input in webbrover but it does not work. I think it should be done with the name property but how? {Enter (login.GetAttribute ("name") == "user name") {login.SetAttribute ("The user name") in the

  foreach (WebBrowser1.Document.GetElementsByTagName ("Input") { Value "," xyz "); }}  

For this data:

  & lt; Input class = "lfFieldInput" type = "text" name = "username" maxlength = "30" autocapitalize = "false" autocorrect = "false" value = "" data-response = "0.0.0.1" & gt;  

But the code is not filling data (xyz).

Have you tried the following:

  IHTMLElementCollection Input Elements = WebBrowser1 (Document). Entry ("name"}}  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -