athred Posted March 6, 2011 Share Posted March 6, 2011 (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 March 6, 2011 by athred Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now