Sign in to follow this  
Followers 0
athred

How to click this button?

1 post in this topic

#1 ·  Posted (edited)

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

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  
Followers 0