I am testing price comparisons web application and I would like to randomly select one of the "Apply Now" buttons. I had tried: (and other similar scenario example from stack)
But every time it select 1st Apply now button. I would like to select different button every time. HTML:
<div class="applyNowButtonContainer">
<a class="join-now" data-productid="******" data-excessid="******" data-href="/XXXXX/ApplyNow_prepare.action?rank=1&hash=onclick="Within.joinNow(this);" href="javascript:void(0)">Apply Now</a>
</div>