Jump to content

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")
            ExitLoop

or

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

Can you help me :)?

Edited by athred
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...