Click here to Skip to main content
15,944,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello is it possible to confirm youtube like click of the webbrowser component without using youtube api ?.

I have this code:



Try

    Dim elements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("button")
    For Each webpageelement As HtmlElement In elements
        If webpageelement.GetAttribute("id") = "watch-like" Then
            webpageelement.InvokeMember("click")
            CheckBox5.Checked = True
        Else

        End If
    Next
Catch ex As Exception
End Try




If the button is clicked then checkbox is checked .
If the movie is removed checkbox is not checked because there is no what to click.


youtube has a limit like, you can click a limited number of times per day.
At some point after clicking like not add likes.
How to make a checkbox not marked
Posted
Comments
[no name] 16-Sep-14 10:18am    
This is against youtubes policies.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900