Jump to content

Readystate Error


Recommended Posts

im gettin the following error

Line 1244 (ie.au3)

While ($o_object.document.readyState <> "complete") and ($o_object.document.readyState <> 4)

While ($o_object.document^ ERROR

Error: The requested action with this object has failed.

Here is my code

$oFrame = _IEFrameGetObjByName($oIE, "nav")
            $oFrame2 = _IEFrameGetObjByName($oIE, "main")
            _IEClickLinkByText ($oFrame, "FF Apps")
            _IELoadWait($oIE)
            _IEClickLinkByText ($oFrame2, "AMAG")
            _IELoadWait($oIE)
            _IEClickLinkByText ($oFrame2, "OQSS")
            Sleep (2000)
            $o_form = _IEFormGetObjByName ($oFrame2, "_FFLogin")
            $o_login = _IEFormElementGetObjByName ($o_form, "Username")
            $o_password = _IEFormElementGetObjByName ($o_form, "Password")
            _IEFormElementSetValue ($o_login, $FFLOGIN1)
            _IEFormElementSetValue ($o_password, $FFPASS1)
            _IEFormSubmit ($o_form)

i looked @ line 1244 in ie.au3 and it is the _IELoadWait() function but whats weird is that the error is happening at the Sleep(2000) line of my script.

any tips would be great.

i just did some pokin round and noticed that _IELoadWait() is in the _IEClickLinkByText() function. i removed all the _IELoadWait($oIE) commands and i was still getting the error. Could it have to do with me setting $o_object in the _IEClickLinkByText() function to the $oFrame2 instead of $oIE?

Well i answered my own question by looking at the _IEClickLinkByText(). I changed them all to _IEClickLinkByText ($oFrame2, "", "", 0) and it fixed the error i was getting but now i get another error :).

_IEFormGetObjByName()

If IsObj($o_object.document.forms.item ($s_name, $i_index)) Then

If IsObj($o_object.document^ ERROR

Error: The requested action with this object has failed.

can i not call this function from a _IEFrameGetObjByName?

Edited by anyday
Link to comment
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
 Share

  • Recently Browsing   0 members

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