Working with advanced Web technologies

If you have applications that run on advanced Web technologies, UFT can record and run tests on these frameworks.

Chromium Embedded Framework

If you have applications that contain the Chromium Embedded Framework, UFT can record and run tests on these applications using standard GUI testing support.

Chromium Embedded Framework support is applicable for Java CEF and Adobe CEP. The details in this topic apply to both Java CEF and Adobe CEP.

Note: Chromium Embedded Framework objects are not supported for other Web-based add-ins, such as .NET Web Forms, Web-based SAP, Siebel, Java, or the Web 2.0 Toolkits.

Enable communication between UFT and your application as follows:

For recording

Add the remote debugging address and URL for the Chromium controls in the Remote Connections pane of the Options dialog box (Tools > Options > GUI Testing tab > Web > Remote Connections node). This enables UFT to find the application's objects when recording.

The port required for this URL is defined by the developer during application design.

For running tests

Manually add a statement to your test or component to enable UFT to attach to or detach from the application:

  • WebUtil.AttachRemoteDebugging

  • WebUtil.DetachRemoteDebugging

For more details on the AttachRemoteDebugging and DetachRemoteDebugging statements, see the WebUtil object in the Utility section of the UFT Object Model Reference for GUI Testing.

If you are running a UFT script on a remote machine, additionally configure the remote machine as follows:

  1. Install socat from one of the following locations:



  2. Run the socat command:

    socat tcp-listen:<x>,fork tcp:localhost:<y>


    <x> is the port number on the target machine that UFT tries to access

    <y> is the CEP port exposed for debugging on the target machine

  3. Disable or change the firewall to allow the relevant port.

UFT is now able to work with remote applications through port <x>.

For more details, see:

Back to top


Run tests on the PhantomJS toolkit without any changes in your existing test.

Note: Recording is not supported for PhantomJS.

In order to run your existing test, in the Record and Run settings dialog box, select PhantomJS as your browser. When running the test, UFT will launch the installed version of PhantomJS and run the test on the toolkit.

You must put your phantomjs.exe program in the <UFT installation folder>/bin directory to enable UFT to run tests on your toolkit. Multiple .exe files can be placed in this folder.

Back to top

See also: