Jump to content

Recommended Posts

Posted (edited)

#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.

$oDiv = _IEGetObjByID($oForm, "mx145")
_IEAction($oDiv, "click")

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

Edited by yeeva
Posted (edited)

i've tried the 2 commands below but didnt work

_IEFormImageClick($oIE, "Changes", "alt")
_IEImgClick($oIE, "Changes", "alt")

i thought my $oIE is referencing to the login page and even tried to put this before the above commands but didnt work as well.

$oIE = "https://maximo.***.com/maximo/ui/login"

i've also tried the below, it worked but i cant seem to find the correct index that will click on the "Changes" word

_IELinkClickByIndex($oIE, 100)
Edited by yeeva
Posted

i've also tried using the below and failed...help really needed here..im willing to provide more info if needed..i've spent weeks on this but no success yet.thanks in advance..

ControlClick( "Start Center - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1; TEXT:Changes]" )
Posted

ive found the solution...thanks for viewing

ControlClick("Start Center - Windows Internet Explorer", "", "Internet Explorer_Server1", "left", 1, 33, 217)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...