Jump to content

AutoIt Error - Line 316 of IE.au3 causing IENavigate to fail?


Recommended Posts

Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Thanks

P.S. I love autoit :)

Link to comment
Share on other sites

Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Thanks

P.S. I love autoit :)

Mind posting the code so we can find the problem? :)
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
Share on other sites

Yeah so I have this script that will run for a while but then after maybe 20-25 minutes I get 2 error windows (identical) that say "AutoIt Error" something about line 316 of IE.au3 and a problem with IENavigate

What are some things that could cause this error?

Line 316 is here:
Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)

;

    $o_object.navigate($s_Url); Line 316

;

EndFunc  ;==>_IENavigate

Probably something has invalidated your $oIE object. Next time you see it post the exact error.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Line 316 is here:

Func _IENavigate(ByRef $o_object, $s_Url, $f_wait = 1)

;

    $o_object.navigate($s_Url); Line 316

;

EndFunc ;==>_IENavigate

Probably something has invalidated your $oIE object. Next time you see it post the exact error.

:)

Whoops! I read his post incorrectly. It seems I've skipped over the IE.au3 part. :) Still, the OP's code wouldn't hurt. :)
Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
Link to comment
Share on other sites

Here it is...

------------------------------------------

AutoIt Error

Line 316 (File "C:\Program Files\AutoIt3\Include\IE.au3")

$o_object.navigate($o_Url)

$o_object.navigate($o_Url)^ERROR

Error: The requested action with this object has failed.

------------------------------------------

Link to comment
Share on other sites

Here it is...

------------------------------------------

AutoIt Error

Line 316 (File "C:\Program Files\AutoIt3\Include\IE.au3")

$o_object.navigate($o_Url)

$o_object.navigate($o_Url)^ERROR

Error: The requested action with this object has failed.

------------------------------------------

I don't think $o_object has failed, or it would say something like "Variable is not an object".

The variable $o_Url might be changing and becoming invalid. You could add some temporary logging to track that.

You also might be hitting a timing issue where the browser is busy and can't be bothered with a .navigate command. You might put _IELoadWait($oIE) just before the _IENavigate().

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...