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
Post a Comment