Sign in to follow this  
Followers 0
HighlanderSword

Click on Button

2 posts in this topic

Hello,

I have a web page that has several button that have no object id assigned to them.

How would I simulate a click on a button like this ?

Below is the HTML from the web page.

Thanks

Paul

</tr>

</tbody>

</table>

<div id="clearone">&nbsp;</div>

</div>

<h4>Administrative Permissions</h4>

<table border="0" cellspacing="5">

<br>

<tr>

<th>Group Admin Permission:</th><td><input value="Grant" onclick="grantGroupPerm();" type="button" class="button"></td><td><input value="Revoke" onclick="revokeGroupPerm();" type="button" class="button"></td><td><input value="Inquire" onclick="showAdmins('group');" type="button" class="button"></td>

</tr>

</table>

Share this post


Link to post
Share on other sites



Hello,

I found the solution, I used the code below

$oInputs = _IETagNameGetCollection ($oIE, "input")

For $oInput In $oInputs

If $oInput.value = "Inquire" Then

_IEAction ($oInput, "click")

EndIf

Next

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  
Followers 0