swoop Posted May 12, 2013 Posted May 12, 2013 I was wondering if someone could give me advice or help on how best to accomplish submitting some clicks in an HTML page in IE. I am able to click on submission buttons that look like the following: <a id="J_LinkBuy" href="#" data-addfastbuy="true" title="wifes_web">Pay Now<b></b></a> Using the following code: $oLink = _IEGetObjById($oIE, "J_LinkBuy") $href = $oLink.href MsgBox(1, "href link", $href ) _IEAction($oLink, "click") However, when I try to do the same thing for the following button elsewhere on the page, it never submits. <div class="tb-btn-buy"> <a href="#" data-addfastbuy="true" title="wife2" class="J_ClickCatcher J_LinkBuy"> Pay Now <b class="J_ClickCatcher J_LinkBuy"></b> </a> </div> Instead of a id= , I see the page uses a class= , which I'm not sure if I can use _IEAction click to work on. I don't think I can just write: $oLink = _IEGetObjById($oIE, "J_ClickCatcher J_LinkBuy") _IEAction($oLink, "click") Also, this link tag may send to some javascript. I'm not sure. Thanks in advance!
AutID Posted May 12, 2013 Posted May 12, 2013 Try _ietagnamegetcollection. https://iblockify.wordpress.com/
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