RickB75 Posted September 8, 2014 Share Posted September 8, 2014 (edited) Guys, I'm wondering why IENavigate doesn't return for my company website. Using the example scripts, it returns for those sites but for some reason it isn't for my company website. I just installed the latest version of AutoIT on my PC a few days ago. #include <IE.au3> Local $oIE = _IECreate() _IENavigate($oIE,"http://www.beamantoyota.com/new-inventory/index.htm") MsgBox(0,"hello","") If I set to return immediately it does. Edit: I'm using IE11 and I tried with IE10. I'm not getting any errors. It loads the page fine, it just doesn't return. Edited September 8, 2014 by RickB75 Link to comment Share on other sites More sharing options...
MikahS Posted September 8, 2014 Share Posted September 8, 2014 I'm not sure what you mean by "return". Do you mean _IENavigate isn't returning a value? If so you haven't read it like so: #include <IE.au3> Local $oIE, $oIEnav $oIE = _IECreate() $oIEnav = _IENavigate($oIE,"http://www.beamantoyota.com/new-inventory/index.htm") MsgBox(0, "hello", $oIEnav) Otherwise, do you mean it is not actually navigating to the page you have specified in the call to _IENavigate? Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
RickB75 Posted September 8, 2014 Author Share Posted September 8, 2014 Basically once IENav goes to the page address, once it's done loading the page IELoadWait checks to make sure the page is loaded before the script returns by default. The script is not returning. It's like it is still waiting on the page to finish loading but the page is done from what I can tell. There's nothing else on the page to load. Link to comment Share on other sites More sharing options...
RickB75 Posted September 8, 2014 Author Share Posted September 8, 2014 Can you guys get the script to return in IE10 or 11??? Link to comment Share on other sites More sharing options...
RickB75 Posted September 8, 2014 Author Share Posted September 8, 2014 I'm just wondering if there is maybe some JS errors on the page that are not working correctly and that's causing AutoIt to have issues. Link to comment Share on other sites More sharing options...
MikahS Posted September 8, 2014 Share Posted September 8, 2014 (edited) Try just.. #include <IE.au3> Local $oIE, $oIEnav $oIE = _IECreate("http://www.beamantoyota.com/new-inventory/index.htm") If @error Then MsgBox(0, "", @error) Exit EndIf MsgBox(0, "", "I'm fine") Use this to test if it is timing out like you say. Edited September 8, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
RickB75 Posted September 8, 2014 Author Share Posted September 8, 2014 (edited) Once the page opens (which it opens fine), the script isn't returning and there's no errors or message boxes that pop up. In the console, The script shows its running until I manually exit the script. Is it working ok for you Mikah? Are you using IE10 or 11?? Edited September 8, 2014 by RickB75 Link to comment Share on other sites More sharing options...
Exit Posted September 8, 2014 Share Posted September 8, 2014 (edited) I assume that the page internally redirects to another internal page, so that IELoadWait() cannot determine the end of load and times out. Initial value for timeout is 5 minutes. Here a script with modified timeout value. You see the result after 15 seconds. #AutoIt3Wrapper_Run_Debug_Mode=y #include <IE.au3> $oIE = _IECreate() _IELoadWaitTimeout(15000) ; 15 seconds $Timer=TimerInit() _IENavigate($oIE,"http://www.beamantoyota.com/new-inventory/index.htm") MsgBox(64+262144, Default, round(timerdiff($Timer)/1000) & " seconds",0) To investigate why the timeout occurs, you should analyse the server side processing of the page. Edited September 8, 2014 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
MikahS Posted September 8, 2014 Share Posted September 8, 2014 (edited) Yes, there is a problem on the page maybe with JS, PHP, or server, but I'm not web guru. I would see if this works.. $oIE = _IECreate("http://www.beamantoyota.com/new-inventory/index.htm", 0, 1, 0) MsgBox(0, "", "hello I made it because we stopped looking for the webpage to load, and instead kept going") EDIT: I'm using IE10 Edited September 8, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
RickB75 Posted September 8, 2014 Author Share Posted September 8, 2014 Exit, It returned with your script. I guess editing the IELoadWait Timer is what I will have to adjust. I'm gonna reach out to our website provider and see if I can get this issue fixed. This was working fine a few days ago (Friday) and I've never ran into any issues with Dale's scripts or functions. Thanks guys for helping me narrow down the issue. Link to comment Share on other sites More sharing options...
MikahS Posted September 8, 2014 Share Posted September 8, 2014 No problem, something for me to think about in future scripts, so thank you as well exit. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
Exit Posted September 8, 2014 Share Posted September 8, 2014 Here an alternatively solution. It checks for existence of a string in the trailer. #include <IE.au3> $Timer = TimerInit() $oIE = _IECreate("http://www.beamantoyota.com/new-inventory/index.htm", 0, 1, 0) While Not StringInStr(_IEBodyReadHTML($oIE), "ebsite by Dealer.com") WEnd MsgBox(64 + 262144, Default, Round(TimerDiff($Timer) / 1000) & " seconds", 0) App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now