Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ie.au3 problem clicking on Href with class

$
0
0

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:

 


AutoIt 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:

AutoIt Code         
$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!

 

 

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>