Jump to content
Sign in to follow this  

How to click this button?

Recommended Posts


I want to click "post" button, under video on youtube.com.

Here's code:

<button aria-pressed="false" role="button" onclick="yt.www.comments.watch5.post(this);;return false;" class="watch-comments-post yt-uix-button" type="button">
    <span class="yt-uix-button-content">Post</span></button>

I tried.. but it doesen't work :/

Here's my code

$sMyString = "Post"
            $oLinks = _IELinkGetCollection($oIE)
            For $oLink in $oLinks
            $sLinkText = _IEPropertyGet($oLink, "innerText")
            If StringInStr($sLinkText, $sMyString) Then
            _IEAction($oLink, "click")


$cInputs = _IETagNameGetCollection ($oIE, "button")
        for $cInput In $cInputs
    if $cInput.class = "watch-comments-post yt-uix-button" Then
        _IEAction($cinput, "click")

Can you help me :)?

Edited by athred

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.