[ autoit ]
#include <IE.au3> Opt("WinTitleMatchMode", 2) ;need this for maximize window $oIE = _IECreate() _IENavigate($oIE, "https://ET&SMAGENTNAME=-SM-ZmVbvUek2WltI%2b%2bS7M2P1q09u2J%2fL%2fA1P3gNV1DVs0Osxk%2fsaTuRDH6NPctoKwYI&TARGET=-SM-HTTPS%3a%2f%2fssologon%2ebankofamerica%2ecom%2fssologinconfirm%2ehtml%3fCONFIRM%3dNO%26TARGET%3dhttp-%3a-%2f-%2fmaximo-%2ebankofamerica-%2ecom-%2fmaximo-%2fui-%2flogin") $oForm = _IEFormGetCollection ($oIE, 0) WinSetState("Internet Explorer", "", @SW_MAXIMIZE) $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection($oForm, 0) _IEFormElementSetValue ($oQuery, "nbk") $oForm = _IEFormGetCollection ($oIE, 0) $oQuery = _IEFormElementGetCollection($oForm, 1) _IEFormElementSetValue ($oQuery, "yee") $osignon = _IEGetObjByName($oForm, "signon") _IEAction($osignon, "click") _IELoadWait($oIE)
first part of the code works fine, which is the login page, however on the following page, i cannot click on the word 'changes' which would lead to another page. the source of 'changes' is
<td class="pls"></td>
<td nowrap id="mx146_0" align="middle" valign="top" style="vertical-align:top;"><div nowrap needsrefresh="false" vis="true" id="mx145_compHolder" class="bc" style="display:inline;">
<span align='middle' ctype="label" id="mx145" tabindex="0" ev="CHANGE" targetid="mx145" mxevent="click" class="text favappsportletlink " style="display:block;;cursor:pointer;;;" title="Changes "><img id='mx145_image' src='../webclient/skins/tivoli09/images/appimg_generic.gif' class='favappsportletlinkimg' border='0' alt="Changes" style='vertical-align:top;margin:0px;margin-left:3px;margin-right:3px;'/>Changes</span></div></td>
<td class="prs"></td>
i tried using the below but failed. im using IE8 btw and the error im getting is below.
[ autoit ]
--> IE.au3 V2.4-0 Error from function _IEGetObById, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType
C:\Program Files (x86)\AutoIt3\Include\IE.au3 (2361) : ==> The requested action with this object has failed.:
If IsObj($o_object.document.GetElementsByName($s_Id).item($i_index)) Then
If IsObj($o_object.document^ ERROR