so i am currently making a program to automate some tasks.
however i ran into a rather weird problem, which occurs if i automate click a button, and NOT if i manually click it.
" system.nullreferenceexception object reference not set to an instance of an object " so here is the error message, which seems to be a rather usual problem maker.
So this is the button code:
why do i get an error when i use button3.perform("click") in the last part of another button to automate it?
however i ran into a rather weird problem, which occurs if i automate click a button, and NOT if i manually click it.
" system.nullreferenceexception object reference not set to an instance of an object " so here is the error message, which seems to be a rather usual problem maker.
So this is the button code:
Code:
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim yourObj As HtmlElement = (From ele As HtmlElement In webber.Document.GetElementsByTagName("a") Where ele.InnerText = "Velkommen til Nordicmakten!" Select ele).FirstOrDefault.InvokeMember("click")
End Sub