Jump to content
Sign in to follow this  

ie.au3 problem clicking on Href with class

Recommended Posts

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>

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!



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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...