17 Oracle JET Functional Module

This chapter provides a complete listing and reference for the methods in the OpenScript JET (Oracle JavaScript Extension Toolkit) Class of the OpenScript JET Module Application Programming Interface (API).

17.1 Oracle JET API Reference

The following section provides an alphabetical listing of the methods in the OpenScript JET API.

17.1.1 Alphabetical Command Listing

The following table lists the OpenScript JET API methods in alphabetical order.

Table 17-1 List of JET Methods

Method Description

jet.accordion

Identifies a JETAccordion by its recorded ID and path.

jet.button

Identifies a JETButton by its recorded ID and path.

jet.chart

Identifies a JETChart by its recorded ID and path.

jet.collapsible

Identifies a JETCollapsible by its recorded ID and path.

jet.combobox

Identifies a JETCombobox by its recorded ID and path.

jet.dataGrid

Identifies a JETDataGrid by its recorded ID and path.

jet.diagram

Identifies a JETDiagram by its recorded ID and path.

jet.dialGauge

Identifies a JETDialGauge by its recorded ID and path.

jet.dialog

Identifies a JETDialog by its recorded ID and path.

jet.filmStrip

Identifies a JETFilmStrip by its recorded ID and path.

jet.findComponent

Find a component in a specified location by CSS selector.

jet.findComponents

Find a list of components in a specified location by CSS selector.

jet.indexer

Identifies a JETIndexer by its recorded ID and path.

jet.inputDate

Identifies a JETInputDate by its recorded ID and path.

jet.inputDateTime

Identifies a JETInputDateTime by its recorded ID and path.

jet.inputNumber

Identifies a JETInputNumber by its recorded ID and path.

jet.inputPassword

Identifies a JETInputPassword by its recorded ID and path.

jet.inputSearch

Identifies a JETInputSearch by its recorded ID and path.

jet.inputText

Identifies a JETInputText by its recorded ID and path.

jet.inputTime

Identifies a JETInputTime by its recorded ID and path.

jet.ledGauge

Identifies a JETLedGauge by its recorded ID and path.

jet.listView

Identifies a JETListView by its recorded ID and path.

jet.menu

Identifies a JETMenu by its recorded ID and path.

jet.navigationList

Identifies a JETNavigationList by its recorded ID and path.

jet.pagingControl

Identifies a JETPagingControl by its recorded ID and path.

jet.popup

Identifies a JETPopup by its recorded ID and path.

jet.progressbar

Identifies a JETProgressbar by its recorded ID and path.

jet.ratingGauge

Identifies a JETRatingGauge by its recorded ID and path.

jet.select

Identifies a JETSelect by its recorded ID and path.

jet.slider

Identifies a JETSlider by its recorded ID and path.

jet.statusMeterGauge

Identifies a JETStatusMeterGauge by its recorded ID and path.

jet.Switch

Identifies a JETSwitch by its recorded ID and path.

jet.table

Identifies a JETTable by its recorded ID and path.

jet.tabs

Identifies a JETTabs by its recorded ID and path.

jet.textArea

Identifies a JETTextArea by its recorded ID and path.

jet.train

Identifies a JETTrain by its recorded ID and path.

jet.tree

Identifies a JETTree by its recorded ID and path.


The following sections provide detailed reference information for each method in the JET Class of the OpenScript JET Module Application Programming Interface.

jet.accordion

Identifies a JETAccordion by its recorded ID and path.

Format

The jet.accordion method has the following command format(s):

jet.accordion(path);

jet.accordion(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETAccordion object specified by its recorded ID and path.

jet.accordion(525,
 "/web:window[@index='0' or @title='Accordion - Accordion']" +
 "/web:document[@index='0']" +
 "/web:JETAccordion[@id='accordionPage'")
 .expand('c1');

jet.button

Identifies a JETButton by its recorded ID and path.

Format

The jet.button method has the following command format(s):

jet.button(path);

jet.button(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETButton object specified by its recorded ID and path.

Boolean disabled = jet.button(11,
 "/web:window[@index='0' or @title='Button']" +
 "/web:document[@index='0']" +
 "/web:JETButton[@id='button']")
 .isDisabled();
info("disabled = " + disabled);

jet.chart

Identifies a JETChart by its recorded ID and path.

Format

The jet.chart method has the following command format(s):

jet.chart(path);

jet.chart(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETChart object specified by its recorded ID and path.

int groupCount = jet.chart(11,
 "/web:window[@index='0' or @title='Area Chart - Default']" +
 "/web:document[@index='0']" +
 "/web:JETChart[@id='areaChart']")
 .getGroupCount();
info("groupCount: " + Integer.toString(groupCount));

jet.collapsible

Identifies a JETCollapsible by its recorded ID and path.

Format

The jet.collapsible method has the following command format(s):

jet.collapsible(path);

jet.collapsible(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETCollapsible object specified by its recorded ID and path.

jet.collapsible(525,
 "/web:window[@index='0' or @title='Collapsible - Collapsible']" +
 "/web:document[@index='0']" +
 "/web:JETCollapsible[@id='collapsiblePage'")
 .expand();

jet.combobox

Identifies a JETCombobox by its recorded ID and path.

Format

The jet.combobox method has the following command format(s):

jet.combobox(path);

jet.combobox(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETCombobox object specified by its recorded ID and path.

jet.combobox(11,
 "/web:window[@index='0' or @title='Combobox - Combobox']" +
 "/web:document[@index='0']" +
 "/web:JETCombobox[@id='combobox']")
 .selectByValues("testValue");

jet.dataGrid

Identifies a JETDataGrid by its recorded ID and path.

Format

The jet.dataGrid method has the following command format(s):

jet.dataGrid(path);

jet.dataGrid(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETDataGrid object specified by its recorded ID and path.

jet.dataGrid(11,
 "/web:window[@index='0' or @title='DataGrid - DataGrid']" +
 "/web:document[@index='0']" +
 "/web:JETDataGrid[@id='dataGrid']")
 .selectRows(1);

jet.diagram

Identifies a JETDiagram by its recorded ID and path.

Format

The jet.diagram method has the following command format(s):

jet.diagram(path);

jet.diagram(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JJETDiagram object specified by its recorded ID and path.

jet.diagram(11,
 "/web:window[@index='0' or @title='Diagram - Default']" +
 "/web:document[@index='0']" +
 "/web:JETDiagramt[@id='diagram']",10)
 .getLinkCount();
info("Count: " + Integer.toString(linkCount));

jet.dialGauge

Identifies a JETDialGauge by its recorded ID and path.

Format

The jet.dialGauge method has the following command format(s):

jet.dialGauge(path);

jet.dialGauge(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETDialGauge object specified by its recorded ID and path.

jet.dialGauge(11,
 "/web:window[@index='0' or  @title='Dial Gauge - Dial Gauge']" +
 "/web:document[@index='0']" +
 /web:JETDialGauge[@id='gauge1']")
 .setValue(10);

jet.dialog

Identifies a JETDialog by its recorded ID and path.

Format

The jet.dialog method has the following command format(s):

jet.dialog(path);

jet.dialog(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETDialog object specified by its recorded ID and path.

jet.dialog(11,
 "/web:window[@index='0' or @title='Dialog - Dialog']" +
 "/web:document[@index='0']" +
 "/web:JETDialog[@id='dialog']")
 .close();

jet.filmStrip

Identifies a JETFilmStrip by its recorded ID and path.

Format

The jet.filmStrip method has the following command format(s):

jet.filmStrip(path);

jet.filmStrip(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETFilmStrip object specified by its recorded ID and path.

jet.filmStrip(11,
 "/web:window[@index='0' or @title='filmStrip Demo']" +
 "/web:document[@index='0']" +
 "/JETFilmStrip[@componentIndex ='0']")
 .getCurrentItem();

jet.findComponent

Find a component in a specified location by CSS selector.

Format

The jet.findComponent method has the following command format(s):

jet.findComponent(selector);

jet.findComponent(selector, windowIndex);

jet.findComponent(selector, windowIndex, documentIndex);

Command Parameters

selector

a String targeting the element.

windowIndex

a 0 based index for each window.

documentIndex

a 0 based index for each document.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Click a jet button in the specified document.

BaseJETComponent target = jet.findComponent("#button", 0, 1);
 ((JETButton)target).click();

jet.findComponents

Find a list of components in a specified location by CSS selector.

Format

The jet.findComponents method has the following command format(s):

jet.findComponents(selector);

jet.findComponents(selector, windowIndex);

jet.findComponents(selector, windowIndex, documentIndex);

Command Parameters

selector

a String targeting the elements.

windowIndex

a 0 based index for each window.

documentIndex

a 0 based index for each document.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Click the first jet button in the specified document.

List<BaseJETComponent> targets = jet.findComponents(".oj-button", 0, 1);
 ((JETButton)targets.get(0)).click();

jet.indexer

Identifies a JETIndexer by its recorded ID and path.

Format

The jet.indexer method has the following command format(s):

jet.indexer(path);

jet.indexer(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETIndexer object specified by its recorded ID and path.

jet.indexer(11,
 "/web:window[@index='0' or @title='Indexer - Basic']" +
 "/web:document[@index='0']" +
 "/JETIndexer[@id='indexer']")
 .selectByPrefix("2");

jet.inputDate

Identifies a JETInputDate by its recorded ID and path.

Format

The jet.inputDate method has the following command format(s):

jet.inputDate(path);

jet.inputDate(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputDate object specified by its recorded ID and path.

String value = jet.inputDate(11,
 "/web:window[@index='0' or @title='InputDate - InputDate']" +
 "/web:document[@index='0']" +
 "/web:JETInputDate[@id='inputDate']")
 .getDisplayValue();
info("value = " + value);

jet.inputDateTime

Identifies a JETInputDateTime by its recorded ID and path.

Format

The jet.inputDateTime method has the following command format(s):

jet.inputDateTime(path);

jet.inputDateTime(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputDateTime object specified by its recorded ID and path.

String value = jet.inputDateTime(11,
 "/web:window[@index='0' or @title='InputDateTime - InputDateTime']" +
 "/web:document[@index='0']" +
 "/web:JETInputDateTime[@id='inputDateTime']")
 .getDisplayValue();
info("value = " + value);

jet.inputNumber

Identifies a JETInputNumber by its recorded ID and path.

Format

The jet.inputNumber method has the following command format(s):

jet.inputNumber(path);

jet.inputNumber(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputNumber object specified by its recorded ID and path.

jet.inputNumber(11,
 "/web:window[@index='0' or @title='InputNumber - InputNumber']" +
 "/web:document[@index='0']" +
 "/web:JETInputNumber[@id='inputNumber']")
 .setValue("15");

jet.inputPassword

Identifies a JETInputPassword by its recorded ID and path.

Format

The jet.inputPassword method has the following command format(s):

jet.inputPassword(path);

jet.inputPassword(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputPassword object specified by its recorded ID and path.

jet.inputPassword(11,
 "/web:window[@index='0' or @title='InputPassword - InputPassword']" +
 "/web:document[@index='0']" +
 "/web:JETInputPassword[@id='inputPassword']")
 .setPassword(deobfuscate("5blNah5kX/XuZnepYwInFw=="));

jet.inputSearch

Identifies a JETInputSearch by its recorded ID and path.

Format

The jet.inputSearch method has the following command format(s):

jet.inputSearch(path);

jet.inputSearch(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputSearch object specified by its recorded ID and path.

jet.inputSearch(11,
 "/web:window[@index='0' or @title='InputSearch - InputSearch']" +
 "/web:document[@index='0']" +
 "/web:JETInputSearch[@id='inputSearch']")
 .search("value");

jet.inputText

Identifies a JETInputText by its recorded ID and path.

Format

The jet.inputText method has the following command format(s):

jet.inputText(path);

jet.inputText(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputText object specified by its recorded ID and path.

String value = jet.inputText(11,
 "/web:window[@index='0' or @title='InputText - InputText']" +
 "/web:document[@index='0']" +
 "/web:JETInputText[@id='inputText']")
 .getValue();
info("value = " + value);

jet.inputTime

Identifies a JETInputTime by its recorded ID and path.

Format

The jet.inputTime method has the following command format(s):

jet.inputTime(path);

jet.inputTime(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETInputTime object specified by its recorded ID and path.

String value = jet.inputTime(11,
 "/web:window[@index='0' or @title='InputTime - InputTime']" +
 "/web:document[@index='0']" +
 "/web:JETInputTime[@id='inputTime']")
 .getDisplayValue();
info("value = " + value);

jet.ledGauge

Identifies a JETLedGauge by its recorded ID and path.

Format

The jet.ledGauge method has the following command format(s):

jet.ledGauge(path);

jet.ledGauge(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETLedGauge object specified by its recorded ID and path.

String label = jet.ledGauge(11,
 "/web:window[@index='0' or @title='LED Gauge - LED Gauge']" +
 "/web:document[@index='0']" +
 /web:JETLedGauge[@id='' or @componentIndex='6']")
 .getMetricLabel();
 .info("Label = " + label);

jet.listView

Identifies a JETListView by its recorded ID and path.

Format

The jet.listView method has the following command format(s):

jet.listView(path);

jet.listView(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETListView object specified by its recorded ID and path.

jet.listView(11,
 "/web:window[@index='0' or @title='ListView - ListView']" +
 "/web:document[@index='0']" +
 "/web:JETListView[@id='listView']")
 .selectByIndices(1);

jet.menu

Identifies a JETMenu by its recorded ID and path.

Format

The jet.menu method has the following command format(s):

jet.menu(path);

jet.menu(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETMenu object specified by its recorded ID and path.

jet.menu(11,
 "/web:window[@index='0' or @title='Menu - Menu']" +
 "/web:document[@index='0']" +
 ""/web:JETMenu[@id='menu']")
 .clickItemByIndex(1);

jet.navigationList

Identifies a JETNavigationList by its recorded ID and path.

Format

The jet.navigationList method has the following command format(s):

jet.navigationList(path);

jet.navigationList(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETNavigationList object specified by its recorded ID and path.

jet.navigationList(11,
 "/web:window[@index='0' or @title='NavigationList - NavigationList']" +
 "/web:document[@index='0']" +
 "/web:JETNavigationList[@id='navigationList']")
 .selectItemByKey("home");

jet.pagingControl

Identifies a JETPagingControl by its recorded ID and path.

Format

The jet.pagingControl method has the following command format(s):

jet.pagingControl(path);

jet.pagingControl(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETPagingControl object specified by its recorded ID and path.

jet.pagingControl(11,
 "/web:window[@index='0' or  @title='Paging Control - Partial Row Count']" +
 "/web:document[@index='0']" +
 "/web:JETPagingControl[@id='paging']")
 .previousPage();

jet.popup

Identifies a JETPopup by its recorded ID and path.

Format

The jet.popup method has the following command format(s):

jet.popup(path);

jet.popup(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETPopup object specified by its recorded ID and path.

jet.popup(11,
 "/web:window[@index='0' or @title='Popup - Popup']" +
 "/web:document[@index='0']" +
 "/web:JETPopup[@id='popup']")
 .close();

jet.progressbar

Identifies a JETProgressbar by its recorded ID and path.

Format

The jet.progressbar method has the following command format(s):

jet.progressbar(path);

jet.progressbar(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETProgressbar object specified by its recorded ID and path.

Double max = jet.progressbar(11,
 "/web:window[@index='0' or @title='Progress Bar']" +
 "/web:document[@index='0']" +
 "/web:JETProgressbar[@id='progressbar']")
 .getMax();
info("max = " + max);

jet.ratingGauge

Identifies a JETRatingGauge by its recorded ID and path.

Format

The jet.ratingGauge method has the following command format(s):

jet.ratingGauge(path);

jet.ratingGauge(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETRatingGauge object specified by its recorded ID and path.

jet.ratingGauge(11,
 "/web:window[@index='0' or @title='Rating Gauge - Rating Gauge']"+
 "/web:document[@index='0']" +
 ""/web:JETRatingGauge[@id='gauge1']")
 .setValue(10);

jet.select

Identifies a JETSelect by its recorded ID and path.

Format

The jet.select method has the following command format(s):

jet.select(path);

jet.select(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETSelect object specified by its recorded ID and path.

jet.select(11,
 "/web:window[@index='0' @title='Select - Select']" +
 "/web:document[@index='0']" +
 "/web:JETSelect[@id='select']")
 .selectByValues("testValue");

jet.slider

Identifies a JETSlider by its recorded ID and path.

Format

The jet.slider method has the following command format(s):

jet.slider(path);

jet.slider(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETSlider object specified by its recorded ID and path.

Double max = jet.slider(11,
 "/web:window[@index='0' or @title='Slider']" +
 "/web:document[@index='0']" +
 "/web:JETSlider[@id='slider']")
 .getMax();
info("max = " + max);

jet.statusMeterGauge

Identifies a JETStatusMeterGauge by its recorded ID and path.

Format

The jet.statusMeterGauge method has the following command format(s):

jet.statusMeterGauge(path);

jet.statusMeterGauge(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETStatusMeterGauge object specified by its recorded ID and path.

Double max = jet.statusMeterGauge(11,
 "/web:window[@index='0' or @title='Status Meter Gauge - Center Content']" +
 "/web:document[@index='0']" +
 "/web:JETStatusMeterGauge[@id='gauge']")
 .setValue(1000);

jet.Switch

Identifies a JETSwitch by its recorded ID and path.

Format

The jet.Switch method has the following command format(s):

jet.Switch(path);

jet.Switch(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETSwitch object specified by its recorded ID and path.

jet.Switch(11,
 "/web:window[@index='0' or @title='Switch - Switch']" +
 "/web:document[@index='0']" +
 "/web:JETSwitch[@id='switch']")
 .on();

jet.table

Identifies a JETTable by its recorded ID and path.

Format

The jet.table method has the following command format(s):

jet.table(path);

jet.table(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETTable object specified by its recorded ID and path.

jet.table(11,
 "/web:window[@index='0' or @title='Table - Table']" +
 "/web:document[@index='0']" +
 "/web:JETTable[@id='table']")
 .selectRowByIndices(1, 2);

jet.tabs

Identifies a JETTabs by its recorded ID and path.

Format

The jet.tabs method has the following command format(s):

jet.tabs(path);

jet.tabs(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETTabs object specified by its recorded ID and path.

jet.tabs(11,
 "/web:window[@index='0' or @title='Tabs - Tabs']" +
 "/web:document[@index='0']" +
 "/web:JETTabs[@id='tabs']")
 .selectByIndex(0);

jet.textArea

Identifies a JETTextArea by its recorded ID and path.

Format

The jet.textArea method has the following command format(s):

jet.textArea(path);

jet.textArea(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETTextArea object specified by its recorded ID and path.

String value = jet.textArea(11,
 "/web:window[@index='0' or @title='TextArea - TextArea']" +
 "/web:document[@index='0']" +
 "/web:JETTextArea[@id='textArea']")
 .getValue();
info("value = " + value);

jet.train

Identifies a JETTrain by its recorded ID and path.

Format

The jet.train method has the following command format(s):

jet.train(path);

jet.train(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETTrain object specified by its recorded ID and path.

String value = jet.train(11,
 "/web:window[@index='0' or @title='Train - Train']" +
 "/web:document[@index='0']" +
 "/web:JETTrain[@id='train']")
 .selectByStepIndex(0);

jet.tree

Identifies a JETTree by its recorded ID and path.

Format

The jet.tree method has the following command format(s):

jet.tree(path);

jet.tree(recId, path);

Command Parameters

path

a String specifying the object path.

recId

the ID of a previously recorded navigation, used for comparison purposes.

Throws

AbstractScriptException

represents an exception that may be thrown during the execution of a script where the exception should be reported to an end user through the controller.

Example

Performs an action on an JETTree object specified by its recorded ID and path.

String value = jet.tree(11,
 "/web:window[@index='0' or @title='Tree - Node reorder using drag/drop']" +
 "/web:document[@index='0']" +
 "/web:JETTree[@id='tree']")
 .expandAllRecursive("blogs");