Orteedev Posted November 27, 2015 Share Posted November 27, 2015 (edited) Hello,Can I click on this link? : <a onclick="ga('send', 'event', 'Smth1', 'click', 'Smth2', {'nonInteraction': 1});" href="#" title="" data-com-id="3537898" class="like action">666</a> Thx Edited November 27, 2015 by Orteedev Link to comment Share on other sites More sharing options...
Danp2 Posted November 27, 2015 Share Posted November 27, 2015 What have you tried? Also, what do you mean by "protected"? Looks like a standard link to me.P.S. You may want to review this thread. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Orteedev Posted November 27, 2015 Author Share Posted November 27, 2015 I have a lot of such links on a page which differ only: data-com-id and and i don't have type.I don't know what to write instead of "button" Local $oButs = _IETagNameGetCollection($oIE, "button") For $oBut In $oButs If StringInStr($oBut.innertext, "Favorite") Then _IEAction($oBut, "click") Next Link to comment Share on other sites More sharing options...
Danp2 Posted November 27, 2015 Share Posted November 27, 2015 In this case, you would want to use _IELinkGetCollection, not _IETagNameGetCollection. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Orteedev Posted November 27, 2015 Author Share Posted November 27, 2015 it doesn't work because when i use right mouse button on this it shows smth.html#<a onclick="ga('send', 'event', 'Smth1', 'click', 'Smth2', {'nonInteraction': 1});" href="#" title="" data-com-id="3537898" class="like action">666</a>It is next to the button who wants to use, same data-com-id="3537898"<a onclick="ga('send', 'event', 'smth', 'click', 'Answer', {'nonInteraction': 1});" href="smth.com/xx/x.html#comment-3537898" title="" data-com-id="3537898" class=" answer "> Answer </a>when i use _IELinkGetCollection($oIE) found only a link in the lower code "smth.com/xx/x.html#comment-3537898" whats now ? 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