VB.NET Youtube LIKE and DISLIKE Button classes Problem for VB.NET

Tiana Jacobi

New member
Joined
Apr 10, 2024
Messages
14
Points
1
I have a nice tool for YouTube .... but one Problem: How is it possible to LIKE or DISLIKE a Video in the Webbrowser control. I do not find the correct classes to activate the button. The code for comments and send comment button is working...... but not like oder dislike... any ideas????

For Each altelm As HtmlElement In WebBrowser1.Document.GetElementsByTagName("BUTTON")
If altelm.GetAttribute("classname").ToString = "yt-renderer-button" Then
altelm.Focus()
altelm.InvokeMember("click")
End If
Application.DoEvents()
Next
 
Top