Hey Guys,
i have a problem. I want to click a button on a website but i only have limited information about the button. All i have is:
My VB code to click that button is
I think it should work but here is the problem now: When im using the program, there are always javascript error messages popping up and they keep the browser loading and dont let the program work
Would be cool if anybody can help me with this ;)
i have a problem. I want to click a button on a website but i only have limited information about the button. All i have is:
Code:
<button onclick=";return true;" class=" yt-uix-button yt-uix-button-default yt-uix-button-size-default" type="submit" role="button"> <span class="yt-uix-button-content"> Posten </span> </button>
Code:
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
For Each element As HtmlElement In allelements
If element.GetAttribute("class") = " yt-uix-button yt-uix-button-default yt-uix-button-size-default" Then
element.InvokeMember("click")
End If
Next
Would be cool if anybody can help me with this ;)