Jump to content

Issue with the "IE.au3" UDF with IE version 11.1418.15063.0


MilenP
 Share

Recommended Posts

Hello Autoit gurus,

 

Today I noticed the following issue when using the IE.au3 UDF with IE version 11.1418.15063.0.

Part of my function is:

 

Func SignIn()
    ;Call the SignIn function if there is entered Username/Password in the GUI Form
    $g_sLoginIE = _IECreate("https://my.emerchantpay.com/", 0, 1)

    _IELoadWait($g_sLoginIE)

    Sleep(500)

    Local $oUsername = _IEGetObjByName($g_sLoginIE, "username")
    Local $oPassword = _IEGetObjByName($g_sLoginIE, "password")
    Local $oButton = _IEGetObjById($g_sLoginIE, "login_button")
    _IEFormElementSetValue($oUsername, $g_sUsernameInput)
    _IEFormElementSetValue($oPassword, $g_sPasswordInput)
    Sleep(500)

    _IEAction($oButton, "click")
    _IELoadWait($g_sLoginIE)
    Sleep(1000)

 

When the page is opened and try to get the _IEGetObjByName the script is failing with;

--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147417848, Browser has been deleted prior to operation.)
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
"C:\Program Files (x86)\AutoIt3\Include\IE.au3" (1876) : ==> The requested action with this object has failed.:
If IsObj($oObject.document.GetElementsByName($sName).item($iIndex)) Then
If IsObj($oObject^ ERROR

You can see that there is also errors regarding the IELoadWait.

 

I have some automations, that are working on older versions of IE, but on the one I am with now they are not working.

 

Can you guys check and advise how I can resolve this. Also as far as I am aware, the IE will be out of support soon, can you please suggest how to proceed when I want to make some browser automations ?

 

Just to add, my Scite version is also updated to the latest, 4.1.2 

 

Thank you in advance!

Edited by MilenP
Link to comment
Share on other sites

Hi @Danp2,

 

Thank you for this suggestion. When adding the

$g_sLoginIE = _IEAttach("my.emerchantpay.com", "url")

it works.. but before, it was working even without _IEAttach after _IECreate or _IENavigate. Is this because of the new IE version or it was always good practice to use _IEAttach as well ?

 

Link to comment
Share on other sites

Hello again,

I have also noticed, that the IE wondows are not hidden, as before

$g_oTransactionIE = _IECreate("https://my.emerchantpay.com/transaction/details/index/transid/" & $g_sTransactionInput, 0, 0)

 

I also have the following error message, which is also breaking my script :( :

--> IE.au3 T3.0-2 Error from function _IEDocReadHTML, $_IESTATUS_InvalidDataType

If someone have any idea... :) I don't like IE, but it was working very good until the update :)

Edited by MilenP
Link to comment
Share on other sites

Hi @Danp2,

 

I would like to learn how the Webdriver UDF works, but can you please provide me with some examples, as I didn't find.

 

Also I have one question, about clicking a DropDown menu with javascript:void(0),which looks like:

image.thumb.png.8207237fb8d0016080172fe979f4a912.png


I tried using _IELinkClickByText_IELinkClickByText_IETagNameGetCollection and _IEGetObjById  with _IEAction($xxx, 'Focus') and 
_IEAction($xxx, 'Click')

Can someone please also give me an example how to interact with this dropdown button


Thank you guys,

Milen

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