Jump to content

Ie Failing on one PC but not another.


Recommended Posts

Hi All,

Got a strange issue here and don't know what it is.

Here is just some test code to reproduce the same error.

#include <ie.au3>

$oIE = _IEAttach("EON/SONET", "WindowTitle")

$tags = _IETagNameAllGetCollection($oIE)


for $o in $tags

    ConsoleWrite($o.TagName & @CRLF)

Next

I don't need to get the tags but getting the tags causes a similar error, I could use _IeFormGetCollection and it would produce a similar error always stating "$oTemp.all.length" - .length object action failed

The site is a simple HTML only, page with one image and a form which has two elements, 2x input for User/Password and a submit button. Thats all.

It works on one PC but not on another and i cannot find out what the difference is, HTML is the same. All IE settings are the same. Using IE7

Error:

>"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\n5003096\Desktop\2.8 IN DEV\Test.au3"    
C:\Program Files\AutoIt3\Include\ie.au3 (2309) : ==> The requested action with this object has failed.:
Return SetError($_IEStatus_Success, $oTemp.all.length, $oTemp.all)
Return SetError($_IEStatus_Success, $oTemp.all.length^ ERROR
>Exit code: 1    Time: 1.734

Thanks for any help

Edited by Steveiwonder

They call me MrRegExpMan

Link to comment
Share on other sites

I've just got through both PC's and compared all the settings Toos> Options > Advanced - They are all identical, all browsing history is cleared. There isn't any strange addons or any AV that is running.

Are there any known issues that affect AU3 from accessing certain browser objects?

Really apprciate any help

Thanks

EDIT: Just going through all the windows updates on both machines. Will post here once done.

Edited by Steveiwonder

They call me MrRegExpMan

Link to comment
Share on other sites

Hrmm

I can get the single input elements using _IeGetObjByName()

The below works just fine.

#include <ie.au3>

$oIE = _IEAttach(WinGetHandle(""), "HWND"); Removed the window name on purpose.

$input = _IEGetObjByName($oIE, "username")
$input.value = "Test"

Would it be because the form doesn't have a "name" or "id"? If so, how come it works on other computers?

Regarding the windows update. Everything is identicle and update to date.

Edited by Steveiwonder

They call me MrRegExpMan

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