restituisce il primo tag "form" presente nel documento. Per ottenere un campo di quel form devi ispezionare tutti i sotto-elementi di questo HtmlElement, poiché anch'essi sono dei tag.
Codice sorgente - presumibilmente VB.NET |
'La proprietà HtmlElement.All restituisce tutti i tag dentro questo HtmlElement For Each Field As HtmlElement In Browser.Document.Forms(0).All If Field.GetAttribute("name") = "username" Then '... End If Next
|