Forum Discussion
Actually, forget what I said about the "send" method. As I said, it's been a while.
I'm guessing that the "while" loop that you have is not getting hit fast enough and that you're entering the switch statement before the send has completed.
Suggestion: change the third parameter of your "open" command to false and see if this works better. That puts the "send" in a synchronus request and the tests will actually pause and wait for the send to complete, either successfully or with a timeout. I know that this runs the risk of waiting a LOOOONG time for the process to complete but this will at least let us know if the request is actually being sent.''
Another potential edit... change that while loop to only check for != 4. Any other readyState means that the send has not completed. Again, this could potentially put you in a long loop so you might want to add code to break out of the loop after a set amount of time.
Thanks Robert for your suggestions.
Scripts went further, but eventually I still gotten msxml3.dll Access is denied dialog popup.
- tristaanogre7 years agoEsteemed Contributor
Any "responseState" other than 4, especially if it is a state of 3, will return an error when attempting to access httpObj.ResponseText in your code. So, it could be that you found a broken link and that the ResponseText object is not in a state that you can access. so, it might be that you need to add additional checking to your code that, if a link comes back with a readyState of anything other than 4, that you would need to handle it differently.
- mttsow7 years agoOccasional Contributor
I am getting these 2 errors. Please see attached.