TestComplete supports testing of various Web controls. The sections below describe how you can test these controls in detail.
About Supported Web Controls
TestComplete can access web page elements displayed in the Internet Explorer, Firefox, Chrome or Opera browser, or in the WebBrowser control integrated into the tested application. That is, you can access every P, DIV, IMG, INPUT and many other tags and their properties. As for web pages displayed in other browsers (for instance, in Konqueror or in Netscape Navigator), you can test them in black-box mode. In other words, you can simulate keystrokes or mouse clicks by coordinates, but you cannot address their individual elements.
Besides that, TestComplete provides extended support for the most popular web controls and elements. These controls are automatically associated with special program objects that extend the controls’ functionality with a number of supplementary methods and properties. These extended methods and properties let you perform various operations over web elements and controls, for example, select individual items or retrieve the item text (see below).
In order for TestComplete to be able to access methods and properties of web pages, special plug-ins are needed.
- To access properties of web page elements shown in Internet Explorer or in the WebBrowser control, the Web Testing plug-in must be installed in TestComplete.
- To test web pages that are shown in Firefox, the Web Testing and Firefox Support plug-ins are required.
- To test web pages that are shown in Chrome, the Web Testing and Chrome Support plug-ins are required.
- To test web pages that are shown in Opera, the Web Testing and Opera Support plug-ins are required.
These plug-ins are installed and enabled automatically if you choose to install TestComplete’s Web module in the TestComplete installation wizard. For more information on these plug-ins, see Requirements for Web Testing.
Supported Browser Versions
The plug-ins support the following browsers:
Microsoft Internet Explorer ver. 7 - 11.
Mozilla Firefox ver. 24 - 32.
Google Chrome ver. 37.
Opera Software Opera ver. 24.
Any web browser based on the Microsoft WebBrowser control.
Below, is the full list of web controls and elements TestComplete provides extended support for:
Support for Web Application Framework Controls
Quite often, dynamic web pages are created using so called web application frameworks - ASP.NET Ajax, Google Web Toolkit, Dojo Toolkit, Yahoo UI and others. These frameworks provide developers with a vast number of dynamic controls.
TestComplete can handle these controls without any preliminary preparations. Dynamic controls are typically recognized either as
Onscreen objects, or as special program objects that extend the controls’ functionality, like the above-mentioned program objects, Flex program objects, Java program objects or some other. Additionally, you can configure the object mapping scheme to improve recognition of dynamic controls. See the Simulating user actions over web application framework controls section in the Testing Web Applications topic for details.