Hello people ive tried multiple ways of trying to click a button without and id code is below
button code:
on of many codes i have tried:
error from code i tried: Object reference not set to an instance of an object.
button code:
Code:
<button style="padding: 5px 10px; font-size: 1.5em;" class=" fk-uix-button yt-uix-button-primary fk-uix-button-size-default" onclick="_gel('autoLinkForm').submit();this.disabled=true;;return false;" type="button" role="button"> <span class="fk-uix-button-content">
Link
</span>
</button>
Code:
For Each Element As HtmlElement In WebBrowser1.Document.GetElementsByTagName("button")
If Element.InnerText.Contains(" fk-uix-button yt-uix-button-primary fk-uix-button- size-default") Then
Element.InvokeMember("click")
Exit For
End If
Next Element