Im making a simple program to log into a website I subscribe too and check if I have any mails.
However im getting stuck when trying to input the username field
this is the code for the username field:
'<input type="hidden" value="qfqovig" name="actualval">
And this is the code ive been attempting to use, however it does not pass the username into required field. I use the same type of code to input the password and it works fine.
Dim theElementCollection As HtmlElementCollection = Me.WebBrowser1.Document.GetElementsByTagName("input")
For Each curElement As HtmlElement In theElementCollection
Dim controlName As String = curElement.GetAttribute("name").ToString
If controlName = "actualval" Then
curElement.SetAttribute("Value", TextBoxuser.Text)
End If
Next
Ive tried a few variations of the above code, but none seems to work. I should not im still learning VB.
Any ideas ?