Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

Does TestComplete support testing of Flash elements on web pages?

Yes. Flash elements can be exposed via TestComplete’s MSAA Open Applications plug-in. To make the Flash elements be treated as MSAA objects, do the following: 1. Open your project in TestComplete. 2. Right-click the project’s node in the Project Explorer panel and select Edit | Properties from the context menu. This will open the Project editor in the Workspace panel and activate the editor’s Properties page. 3. Choose Open Applications | MSAA from the list on the left of the page. This will activate the MSAA section of the project properties. 4. Click Add to append a new entry to the List of accepted windows and enter MacromediaFlashPlayerActiveX into the editor. 5. Choose File | Save from TestComplete’s main menu to save the changes. However, this approach only lets you test Flash elements residing on web pages that are shown in Microsoft Internet Explorer or the Microsoft WebBrowser control. Testing Flash elements in Mozilla Firefox is currently not supported because the Firefox component that is responsible for displaying Flash elements does not support Microsoft Active Accessibility. Besides, elements of certain Flash-movies may not be available in TestComplete because those movies are displayed in a windowless mode. This behavior is controlled by the movie’s WMode parameter. To test your movie you should set it to default value: window (wmode="window"). The parameter value can be set in Macromedia Flash IDE while publishing a movie (the Window Mode option on the HTML tab of the Publish Settings dialog) or right in the HTML code of the corresponding page (in the Object and Embed tags). Here is a snippet of HTML source code: