I've been tasked with developing a method to functional test and load test an application we're implementing in our environment. The vendor created a shell which uses Internet Explorer_Server controls to display content and get input. The problem lies in that I cannot get the raw HTML from the control, I get "Access Denied" 80020009 when I try to get the data using COM.

Up till now, I worked around the COM error by entering data into fields and pulling it out again for evaluation. The assumption here is that if I could enter data, the page loaded and at least the field was there. This approach has gotten me only so far, as I've gotten to parts where there's no form of input but I need to verify it loaded. The narrator program of windows is able to see inside this control and read the text.

My question is what other methods/technologies can I use to get the HTML from the control? I'm using AutoIt for this project (but I'm not limited or restricted to it).

  • Good answer here: stackoverflow.com/questions/16242317/… – Sam Woods Oct 10 '13 at 19:43
  • @SamWoods I've already tried that type of solution. Unfortunately, any attempt to do anything with that object results in a "Access Denied" com error. This is why I'm hoping someone can recommend another way to read the text/data in that control. – Colyn1337 Oct 10 '13 at 19:48
  • Ah, ok. There are comments under this answer that might be useful: stackoverflow.com/questions/19232838/…. Unfortunately, it's been years since I had any experience with this, so not sure how much additional help I could be. – Sam Woods Oct 10 '13 at 19:54

This is super painful. My company ended up purchasing Test Complete to make this reasonably testable. It has some windows spy tools to find that order of objects and good hooks into the system. You could also use a GUI tester like Sikuli.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.