Generic HTML Connector

(Available from version 7.0 onwards.)

Automation Studio is designed to provide powerful and reliable screen element capturing from Chrome, Firefox, and Microsoft Edge using the Generic HTML Connector.

Note the following limitations on support for Microsoft Edge:

  • Only available if using NICE Real-Time Client 7.3 or higher.

  • Only versions of Microsoft Edge based on Chromium are supported. Previous versions of Edge that were based on other technologies are not supported.

Connector Features

The built-in Generic HTML Connector provides the following features:

  • Capture of HTML objects in Chrome, Firefox and Microsoft Edge

  • Capture of internal documents displayed within the browser

  • If a screen element is captured from a web app in one supported browser, during run-time that element will recognized if the same app is opened in another supported browser.

  • From version 7.2, there is also a Web Browser library object that exposes functionality when working with tabs in Chrome, Firefox, and Microsoft Edge.

  • From version 7.8, capturing of custom HTML element tags.

  • From version 7.9, elements inside the shadow DOM can be captured.

Configure the Connector

The Generic HTML Connector is installed and enabled by default

However, you must enable the relevant NICE Browser Connector extension in the browser in which you will be capturing screen elements.

After installing a new version of the NICE Real-Time Client, you may need to re-enable the browser extension.

For Chrome configuration, see here.

For Firefox configuration, see here.

For Edge configuration, see here.

Capture a Screen Element

The procedure for capturing a screen element from a web application using the Generic HTML Connector is the same as for all screen elements. See Capture a Screen Element.

The following guidelines are specific to capturing elements using the Generic HTML Connector:

  • Start the browser before opening Automation Studio and capturing screen elements.

  • If the process stops working, close Automation Studio and the browser. Then reopen the browser and Automation Studio.

    To fully close the Chrome browser, you must open the Windows Task Manager and verify that no Chrome instances are still running. (Alternatively, configure Chrome to automatically close background apps when the browser is closed. See here.)

  • While capturing, if the selector rectangle does not align correctly over a control, press F5 to refresh the web application or restart the browser.

  • When capturing, hover over the control you want to capture and wait until the selector rectangle is drawn around it before clicking the left or right mouse button to perform the capture. (If you move your cursor before the rectangle is displayed, another control may be captured instead.)

Edit a Screen Element

The Edit Screen Element window opens after capturing a screen element. This screen allows you to customize how the screen element is treated and identified. See Edit a Screen Element.

Information specific to HTML screen elements is provided below.

Element Hierarchy

The element hierarchy for a captured HTML element is as follows:

  • Root branch for the HTML process, named rti_nativehost

    • HTML Document screen element, named with its URL

      • Captured HTML screen element, by default named with a prefix HTML

The Generic HTML connector also enables you to capture inline frames (IFrame). An IFrame is an HTML document that is not the main document of the browser, and is used for embedding another document within the current HTML document.

When capturing such inline frames in the web application, the documents are displayed as a tree in the screen elements hierarchy. The inline frame (Generic HTML Document) is located under the main (parent) Generic HTML Document level in the hierarchy in the Screen Elements tree.

See View the Element Hierarchy.

Screen Element Types Supported

The screen element type values available differ between levels in the hierarchy.

Type

Screen Element Types

Screen Element

  • Generic HTML Element

  • Generic HTML CheckBox

  • Generic HTML Combo Box

  • Generic HTML Hyperlink

  • Generic HTML Image

  • Generic HTML List Box

  • Generic HTML Radio Button

  • Generic HTML Table

  • Generic HTML Text Area

  • Generic HTML Text Box

  • Generic HTML Button

HTML Document

  • Generic HTML Document

Generic HTML Process

  • Generic HTML Process

Recognition Properties Supported

The recognition properties available differ between levels in the hierarchy.

Main Relation Type

The element's main relation type is displayed in the Edit Screen Element window, but cannot be changed.

This section is not displayed for the Generic HTML process.

See Identify an Element's Main Relation Type.

Multi Instance Support

The Generic HTML Connector provides support for multiple instances of a web application.

You can specify which instance of the application to relate to if multiple instance of the same application are open.

Multi instance support differs between levels in the hierarchy.

Type

Multi Instance Support

Screen Element

Optional, inactive by default.

HTML Document

Optional, inactive by default.

Generic HTML Process

Active by default, cannot be deactivated.

See Set Multi Instance Behavior

Screen Element Assets

Each HTML screen elements has its own properties, functions, and events. These are visible in the Assets Panel.

For information on screen element assets, see here.

Monitor Screen Elements in Debug Mode

When in debug mode, you can view and modify the values of a screen element's properties.

In the example below, the text in the search field can be read or modified during debug.

See Monitor Screen Elements in Execution Mode.

Best Practices

For best practices related to capturing screen elements from a web application, see here.