In the past I have automated the entry of data and clicks into Internet Explorer using the createobject("InternetExplorer.Application") object and to get each field by its name or id I used the getelementbyID method. However, now the webpage I have been using has changed and requires a click on an image file that has no name or id. When the correct image is clicked it fires onClick="GetAction(1)" which is a function elsewhere in the source.
Code:
<table border="0" width="650">
<tr>
<td bgcolor="lightgrey" align="right"> </td>
</tr>
</table>
<table border="0" width="650">
<tr><td align="center" width="350" valign="top">
<form name="SelectAction" action="SelectAction.asp">
<table border="0" height="100" width="350">
<tr>
<td align="center" colspan="2">
<font color="lightGrey" size="3"><b>
Please select your action
</b></font>
</td>
</tr>
<tr>
<td align="center"><img SRC="images/picNEW.gif" alt="New - New employee or Existing employee
New employee - Select to request access for a new employee who does not have a Universal ID (34ID),
Network Logon ID, or email Account.
Existing employee (New SAF User) - Select if you would like to request access for an employee who is
an existing employee of XYZ and already has a Universal ID, a Network Logon ID but has never used SAF.
" onClick="GetAction(1)" WIDTH="104" HEIGHT="58"></td>
<td align="center"><img SRC="images/picEDIT.gif" alt="Edit - Please click on Edit if you are requesting
access for a person who has already used this application before. " onClick="GetAction(2)" WIDTH="104"
HEIGHT="58"></td>
<!--<td align="center"><img SRC="images/picDELETE.gif" onClick="GetAction(3)" WIDTH="104" HEIGHT="58">
</td>-->
</tr>
</table>
Is there another way to identify the image that will allow me to "Click()" it?