| || |
support for firefox sidebar (MozillaWindowClass)
I'm an advanced testcomplete user, struggling with one particular feature of Mozilla Firefox...a sidebar.
So my companies product is an addon for IE and firefox. Our IE sidebar works fine, and testing is fully automated. However, I cannot get any sidebar in firefox to work with testcomlete. The sidebar contains an html page. The problem is the sidebar shows up in the MozillaWindowClass object, inside the firefox process. In order for TC to see inside the MozillaWindowClass, I have added it to the list of MSAA applications. However, when i use the object browser to browse inside the MozillaWindowClass, I eventually get to the page document. However, I cannot see any further. I click the "+" in the document object, and I will see two divs appear momentarily, then they vanish. So obviously, since I cannot see any of the document, I cannot map anything. This is very odd, since the same page works fine in the main window. (this is true for any web page). It seems like firefox is re-parsing the document every few seconds, since if i'm quick i can expand the html pages child objects, and see their children. However, this only lasts a couple seconds before they vanish.
To try this out: add a bookmark (or go to an existing one), right-click it and go to properties, then select "load this bookmark in the sidebar". Use the object mapper to try to map a field. TestComplete will lag out for a couple minutes, then eventually it will highlight the entire sidebar. It cannot see any further "inside" the page.
Is this an issue with Mozilla? Or Testcomplete? Or MSAA? Do i need to change how TC parses web pages? I know there are options for Tree, hybrid view, etc.
I have posted this on the automatedqa forums, but so far I have gotten no response.
An alternative to fixing this problem would be to figure out how to make the sidebar html page appear as a page object in firefox (Sys.Process("firefox").Page("*")) instead of as a document in the MozillaWindowClass.
Re: support for firefox sidebar (MozillaWindowClass)
Please see our answer in the following newsgroup thread: