IEExtractTagByName to nonexistent IE reference problem

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
djs
Junior Coder
Posts: 47
Joined: Sun Apr 29, 2012 4:21 pm

IEExtractTagByName to nonexistent IE reference problem

Post by djs » Tue Feb 19, 2013 4:32 pm

Version 14.0.3

Easy line:

Code: Select all

IEExtractTagByName>IE[9],,A,yui-first-link,0,FirstTag
will cause an 'access violation' to occur, if IE[9] does not exist, or, as in my case, wasn't actually completed rendering just yet.

If you run this one line by itself, I would expect it to fail gracefully, perhaps even set an error flag, but instead it let me know in no uncertain terms that I didn't wait long enough :)

And yes, proper coding and using IEWaitDocumentComplete would prevent this error. Unfortunately, the site I'm working with doesn't really allow for IEWaitDocumentComplete, the javascript (or whatever it is on the page) keeps this from ever happening. Instead, I have to use IEWaitTimeout, which isn't always accurate.

Thanks Marcus! Version 14 overall, was my Christmas wishlist come true :)

Dan

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 20, 2013 9:59 am

Agree. Will improve this in next maintenance release.
Thanks Marcus! Version 14 overall, was my Christmas wishlist come true
Please to hear it! :-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts