Supported MooTools Controls

Applies to TestComplete 15.46, last modified on January 09, 2023

Information in this topic applies only to web tests implementing the classic approach. In cross-platform web tests, TestComplete recognizes third-party controls as standard web controls.

TestComplete supports testing of various MooTools controls. You can also modify project properties so that TestComplete recognizes your custom MooTools controls. The sections below describe how you can test MooTools controls in detail.

About Testing MooTools Controls

TestComplete can work with any web control via the control’s graphical user interface displayed in a web browser, no matter how the control is implemented on the server side. You can test web applications that use controls implemented by using various technologies and frameworks, including MooTools.

Besides, TestComplete provides extended support for most of MooTools controls. It automatically associates them with special scripting test objects that contain supplementary methods and properties for working with the controls, for example, for selecting individual items and retrieving the item text.

Support for MooTools controls is rather transparent. During test recording, TestComplete automatically recognizes MooTools controls on a page and records the appropriate test commands for your actions. You can then run the recorded test to see how TestComplete simulates user actions on the controls. The entire procedure is very similar to recording and running web tests that work with “regular” web controls. See Web Testing Tutorial, then try to record and run tests on your MooTools web pages.

Supported Controls

Below is the complete list of MooTools controls for which TestComplete provides extended support.

Control Library Class
Accordion MooTools More 1.4.0.1, 1.5.1, 1.5.2, 1.6.0 Fx.Accordion
Slider MooTools More 1.4.0.1, 1.5.1, 1.5.2, 1.6.0 Fx.Slide

Note: If your control is not in the list, you can try working with it by using the properties and methods TestComplete provides for standard web elements. See Support for Web Controls.

Supported Browser Versions

TestComplete supports testing of MooTools controls in web applications displayed in the following browsers:

  • Microsoft Internet Explorer ver. 11.

  • Microsoft Edge ver. 83 - 103 (Chromium-based).

    Note: The non-Chromium version of Edge is not supported.

  • Mozilla Firefox ver. 91 - 102.1 ESR, 94 - 102.

    If you use a later version of Firefox, check whether a patch is available for it.

  • Google Chrome ver. 103.

    If you have a TestComplete version earlier than 12.42, your version of the SmartBear Test Extension will be incompatible with newer versions of the Chrome web browser. To test web applications in Chrome 103, you will have to upgrade your TestComplete to some later version. We recommend using version 15.46.

    If you use a later version of Google Chrome, check whether a patch is available for it.

  • Any web browser based on the Microsoft WebBrowser control.

    Note: The Edge-based WebBrowser control is not supported.

  • Embedded Chromium web browser:

    • In applications built with Chromium Embedded Framework (CEF) version 85.0.4183 and earlier (except CEF3 1750).

      Note: For CEF applications that use WPF controls, only versions 84.0.04147 and earlier are supported.

    • In applications built with Electron version 1.8.2 - 14.

Requirements

  • A license for the Web module of TestComplete.

  • The MooTools Control Support plugin. It provides access to controls via special program objects.

  • The following plugins:

    • Web Testing - Implements web testing, enables testing of web applications running in Internet Explorer, Edge or WebBrowser control (but not the Edge-based WebBrowser control).

    • Firefox Support - Enables testing of web applications running in Mozilla Firefox.

    • Chrome Support - Enables testing of web applications running in Google Chrome.

    • Chromium Embedded Framework Support - Enables web testing in applications created with Chromium Embedded Framework (CEF) or with Electron.

All these plugins are installed and enabled automatically.

If you experience issues when working with the controls, select File | Install Extensions from the main menu of TestComplete to check whether the plugins are active. If a plugin is not available, run the TestComplete installation in the Repair mode.

To implement support for the MooTools controls, apply an accessibility patch to the MooTools controls’ source code.

Patches for supported versions of MooTools controls are shipped with TestComplete. By default, they reside in the <TestComplete 15>\Open Apps\WebControls folder. To apply a needed patch to the control source code use the following instructions:

  1. Follow the link http://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip/download to download an archive containing the free Patch utility.

  2. Extract the patch.exe executable file and place it in the root directory of the controls’ source library (the directory that contains the mootools-more-More-NNN.js file, NNN is your MooTools version).

  3. Copy the patch file corresponding to your MooTools version from the <TestComplete 15>\Open Apps\WebControls folder to the same root folder, in which you have placed the patch.exe file.

  4. Apply the patch by executing the following command line:

    patch -p0 --binary < mootools-more-NNN.diff

    Where NNN is your MooTools version: 1.4.0.1, 1.5.1, 1.5.2, 1.6.0.

See Also

Supported Controls
Classic Web Testing

Highlight search results