13 Oracle Fusion/ADF Functional Module

This chapter provides a complete listing and reference for the methods in the OpenScript ADFService Class of ADF Module Application Programming Interface (API).

13.1 ADFService API Reference

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

13.1.1 Alphabetical Command Listing

The following table lists the ADFService API methods in alphabetical order.

Table 13-1 List of ADFService Methods

Method Description

adf.calendar

Identifies an ADFCalendar by its recorded ID and path.

adf.carousel

Identifies an ADFCarousel by its path.

adf.commandButton

Identifies an ADFCommandButton by its recorded ID and path.

adf.commandImageLink

Identifies an ADFCommandImageLink by its recorded ID and path.

adf.commandLink

Identifies an ADFCommandLink by its recorded ID and path.

adf.commandMenuItem

Identifies an ADFCommandMenuItem by its recorded ID and path.

adf.commandNavigationItem

Identifies an ADFCommandNavigationItem by its path.

adf.commandToolbarButton

Identifies an ADFCommandToolbarButton by its recorded ID and path.

adf.contextInfo

Identifies an ADFContextInfo by its recorded ID and path.

adf.dialog

Identifies an ADFDialog by its recorded ID and path.

adf.gauge

Identifies an ADFDVTGauge by its path.

adf.goButton

Identifies an ADFGoButton by its path.

adf.goImageLink

Identifies an ADFGoImageLink by its path.

adf.goLink

Identifies an ADFGoLink by its path.

adf.goMenuItem

Identifies an ADFGoMenuItem by its recorded ID and path.

adf.graph

Identifies an ADFDVTGraph by its recorded ID and path.

adf.inputColor

Identifies an ADFInputColor by its recorded ID and path.

adf.inputComboboxListOfValues

Identifies an ADFInputComboboxListOfValues by its recorded ID and path.

adf.inputDate

Identifies an ADFInputDate by its recorded ID and path.

adf.inputFile

Identifies an ADFInputFile by its recorded ID and path.

adf.inputListOfValues

Identifies an ADFInputListOfValues by its recorded ID and path.

adf.inputNumberSlider

Identifies an ADFInputNumberSlider by its recorded ID and path.

adf.inputNumberSpinbox

Identifies an ADFInputNumberSpinbox by its recorded ID and path.

adf.inputRangeSlider

Identifies an ADFInputRangeSlider by its recorded ID and path.

adf.inputText

Identifies an ADFInputText by its recorded ID and path.

adf.menu

Identifies an ADFMenu by its recorded ID and path.

adf.message

Identifies an ADFMessage by its recorded ID and path.

adf.messages

Identifies an ADFMessages by its recorded ID and path.

adf.navigationPane

Identifies an ADFNavigationPane by its recorded ID and path.

adf.noteWindow

Identifies an ADFNoteWindow by its recorded ID and path.

adf.outputFormatted

Identifies an ADFOutputFormatted by its recorded ID and path.

adf.outputLabel

Identifies an ADFOutputLabel by its recorded ID and path.

adf.outputText

Identifies an ADFOutputText by its recorded ID and path.

adf.page

Identifies an ADFPage by its recorded ID and path.

adf.panelAccordion

Identifies an ADFPanelAccordion by its recorded ID and path.

adf.panelBox

Identifies an ADFPanelBox by its recorded ID and path.

adf.panelHeader

Identifies an ADFPanelHeader by its recorded ID and path.

adf.panelLabelAndMessage

Identifies an ADFPanelLabelAndMessage by its recorded ID and path.

adf.panelList

Identifies an ADFPanelList by its recorded ID and path.

adf.panelSplitter

Identifies an ADFPanelSplitter by its recorded ID and path.

adf.panelTabbed

Identifies an ADFPanelTabbed by its recorded ID and path.

adf.panelWindow

Identifies an ADFPanelWindow by its recorded ID and path.

adf.pivotTable

Identifies an ADFDVTPivotTable by its path.

adf.progressIndicator

Identifies an ADFProgressIndicator by its recorded ID and path.

adf.query

Identifies an ADFQuery by its recorded ID and path.

adf.quickQuery

Identifies an ADFQuickQuery by its recorded ID and path.

adf.region

Identifies an ADFRegion by its path.

adf.resetButton

Identifies an ADFResetButton by its recorded ID and path.

adf.richTextEditor

Identifies an ADFRichTextEditor by its recorded ID and path.

adf.selectBooleanCheckbox

Identifies an ADFSelectBooleanCheckbox by its recorded ID and path.

adf.selectBooleanRadio

Identifies an ADFSelectBooleanRadio by its recorded ID and path.

adf.selectManyCheckbox

Identifies an ADFSelectManyCheckbox by its recorded ID and path.

adf.selectManyChoice

Identifies an ADFSelectManyChoice by its recorded ID and path.

adf.selectManyListbox

Identifies an ADFSelectManyListbox by its recorded ID and path.

adf.selectManyShuttle

Identifies an ADFSelectManyShuttle by its recorded ID and path.

adf.selectOneChoice

Identifies an ADFSelectOneChoice by its recorded ID and path.

adf.selectOneListbox

Identifies an ADFSelectOneListbox by its recorded ID and path.

adf.selectOneRadio

Identifies an ADFSelectOneRadio by its recorded ID and path.

adf.selectOrderShuttle

Identifies an ADFSelectOrderShuttle by its recorded ID and path.

adf.showDetail

Identifies an ADFShowDetail by its recorded ID and path.

adf.showDetailHeader

Identifies an ADFShowDetailHeader by its recorded ID and path.

adf.table

Identifies an ADFTable by its recorded ID and path.

adf.toolbar

Identifies an ADFToolbar by its recorded ID and path.

adf.train

Identifies an ADFTrain by its path.

adf.trainButtonBar

Identifies an ADFTrain by its recorded ID and path.

adf.tree

Identifies an ADFTree by its recorded ID and path.

adf.treeTable

Identifies an ADFTreeTable by its recorded ID and path.

adf.waitForPageLoaded

Wait for ADF page to be fully loaded.


The following sections provide detailed reference information for each method and enum in the ADFService Class of ADF Module Application Programming Interface.


adf.calendar

Identifies an ADFCalendar by its recorded ID and path.

Format

The adf.calendar method has the following command format(s):

adf.calendar(path);

adf.calendar(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 ADFCalendar object specified by its recorded ID and path.

adf.calendar(11, "/web:window[@index='0' or @title='Calendar Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFCalendar[@id='dmoTpl:cal']")
 .calendarEvent("today", 9, 0, false);

adf.carousel

Identifies an ADFCarousel by its path.

Format

The adf.carousel method has the following command format(s):

adf.carousel(path);

adf.carousel(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 a select action on an ADFCarousel object specified by its recorded ID and path.

adf.carousel(7, "/web:window[@index='0' or @title='carousel Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/ADFCarousel[@id='pt:carousel']")
 .select(2);

adf.commandButton

Identifies an ADFCommandButton by its recorded ID and path.

Format

The adf.commandButton method has the following command format(s):

adf.commandButton(path);

adf.commandButton(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 ADFCommandButton object specified by its recorded ID and path.

adf.commandButton(22, "/web:window[@index='0' " +
   "or @title='commandButton Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFCommandButton[@id='dmoTpl:usewindowButton' " +
   "and @text='Click here']")
 .click();

adf.commandImageLink

Identifies an ADFCommandImageLink by its recorded ID and path.

Format

The adf.commandImageLink method has the following command format(s):

adf.commandImageLink(path);

adf.commandImageLink(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 ADFCommandImageLink object specified by its recorded ID and path.

adf.commandImageLink(6, "/web:window[@index='0' " +
   "or @title='commandImageLink Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFCommandImageLink[@id='dmoTpl:cil1' and @text='dmoTpl:cil1']")
 .click();

adf.commandLink

Identifies an ADFCommandLink by its recorded ID and path.

Format

The adf.commandLink method has the following command format(s):

adf.commandLink(path);

adf.commandLink(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 ADFCommandLink object specified by its recorded ID and path.

adf.commandLink(32, "/web:window[@index='0' or @title='Tag Guide']" +
 "/web:ADFCommandLink[@id='tmplt:abcCols:cols:0:secs:2:itms:13:cmd' " +
  "and @text='tmplt:abcCols:cols:0:secs:2:itms:13:cmd']")
 .click();

adf.commandMenuItem

Identifies an ADFCommandMenuItem by its recorded ID and path.

Format

The adf.commandMenuItem method has the following command format(s):

adf.commandMenuItem(path);

adf.commandMenuItem(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 ADFCommandMenuItem object specified by its recorded ID and path.

adf.commandMenuItem(45, "/web:window[@index='0' " +
   "or @title='commandMenuItem Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFCommandMenuItem[@text='Radio 1' " +
   "and @id='dmoTpl:commandMenuItem8']")
 .click();

adf.commandNavigationItem

Identifies an ADFCommandNavigationItem by its path.

Format

The adf.commandNavigationItem method has the following command format(s):

adf.commandNavigationItem(path);

adf.commandNavigationItem(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 ADFCommandNavigationItem object specified by its recorded ID and path.

import oracle.oats.scripting.modules.adf.api.elements.ADFCommandNavigationItem;
[...]
Map<String, String> attributes = adf.commandNavigationItem(7, "/web:window[@index='0' " +
   "or @title='commandNavigationItem Demo']" +
 "/web:document[@index='0']" +
 "/web:ADFCommandNavigationItem[@id='dmoTpl:editorExample:commandNavigationItem1' " +
   "and @text='Editor Item' " +
   "and @absoluteLocator='dmoTpl:editorExample:commandNavigationItem1' " +
   "and @disabled='False']")
 .getAttributes();
 int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key)
    .equals("dmoTpl:editorExample:commandNavigationItem1"))
   pass_attr++;
 if (key.equals("text") && attributes.get(key)
    .equals("Editor Item"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key)
    .equals("dmoTpl:editorExample:commandNavigationItem1"))
   pass_attr++;
 if (key.equals("disabled") && attributes.get(key)
    .equals("False"))
   pass_attr++;
   info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 4)
   info("API getAttributes() passed");
else
   fail("API getAttributes() failed");
}

adf.commandToolbarButton

Identifies an ADFCommandToolbarButton by its recorded ID and path.

Format

The adf.commandToolbarButton method has the following command format(s):

adf.commandToolbarButton(path);

adf.commandToolbarButton(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 ADFCommandToolbarButton object specified by its recorded ID and path.

adf.commandToolbarButton(57, "/web:window[@index='0' " +
   "or @title='commandToolbarButton Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFCommandToolbarButton[@id='dmoTpl:commandToolbarButton3' " +
   "and @text='forward']")
 .clickButton();

adf.contextInfo

Identifies an ADFContextInfo by its recorded ID and path.

Format

The adf.contextInfo method has the following command format(s):

adf.contextInfo(path);

adf.contextInfo(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 ADFContextInfo object specified by its recorded ID and path.

adf.contextInfo((22, "/web:window[@index='0' " +
   "or @title='commandButton Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFContextInfo[@id='dmoTpl:usewindowButton']")
 .click();

adf.dialog

Identifies an ADFDialog by its recorded ID and path.

Format

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

adf.dialog(path);

adf.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 ADFDialog object specified by its recorded ID and path.

adf.dialog(19, "/web:window[@index='0' or @title='Calendar Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFDialog[@id='dmoTpl:cal:d5' and @title='Create New Activity']")
 .closeDialog();

adf.gauge

Identifies an ADFDVTGauge by its path.

Format

The adf.gauge method has the following command format(s):

adf.gauge(path);

adf.gauge(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 ADFDVTGauge object specified by its recorded ID and path.

Map<String, String> attributes =adf.gauge(7, "/web:window[@index='0' " +
   "or @title='Gauge Gallery']" +
 "/web:document[@index='0' or @name='w0']" +
 "/web:ADFDVTGauge[@absoluteLocator='demo:g3']").getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("demo:g3"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key).equals("demo:g3"))
   pass_attr++;
 if (key.equals("indicatorValue") && attributes.get(key).equals("63.0"))
   pass_attr++;                       
}
if (pass_attr == 3)
   info("API getAttributes() passed");
else 
   warn("API getAttributes() failed");
}

adf.goButton

Identifies an ADFGoButton by its path.

Format

The adf.goButton method has the following command format(s):

adf.goButton(path);

adf.goButton(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 a click action on an ADFGoButton object specified by its recorded ID and path.

adf.goButton(7, "/web:window[@index='0' or @title='goButton Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "web:ADFGoButton[@absoluteLocator='dmoTpl:btn1' or @text='A link to oracle.com']")
 .click();

adf.goImageLink

Identifies an ADFGoImageLink by its path.

Format

The adf.goImageLink method has the following command format(s):

adf.goImageLink(path);

adf.goImageLink(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 a click action on an ADFGoImageLink object specified by its recorded ID and path.

adf.goImageLink(7, "/web:window[@index='0' or @title='outputText Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFGoImageLink[@absoluteLocator='dmoTpl:gil1' or @text='A link to oracle.com']")
 .click();

adf.goLink

Identifies an ADFGoLink by its path.

Format

The adf.goLink method has the following command format(s):

adf.goLink(path);

adf.goLink(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 a click action on an ADFGoLink object specified by its recorded ID and path.

adf.goLink(7, "/web:window[@index='0' or @title='goLink Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "web:ADFGoLink[@absoluteLocator='dmoTpl:gl1' or @text='A link to oracle.com']")
 .click();

adf.goMenuItem

Identifies an ADFGoMenuItem by its recorded ID and path.

Format

The adf.goMenuItem method has the following command format(s):

adf.goMenuItem(path);

adf.goMenuItem(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 ADFGoMenuItem object specified by its recorded ID and path.

adf.goMenuItem(157, "/web:window[@index='0' or @title='goMenuItem Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFGoMenuItem[@id='dmoTpl:gmi7' and @text='shortDesc']")
 .click();

adf.graph

Identifies an ADFDVTGraph by its recorded ID and path.

Format

The adf.graph method has the following command format(s):

adf.graph(path);

adf.graph(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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

Get seriesCount attribute from an ADFDVTGraph object specified by its path.

adf.graph(7, "/web:window[@index='0' or @title='barGraph']" +
 "/web:document[@index='0']" +
 "/ADFDVTGraph[@absoluteLocator='demo:barGraph']")
 .getAttribute("seriesCount");

adf.inputColor

Identifies an ADFInputColor by its recorded ID and path.

Format

The adf.inputColor method has the following command format(s):

adf.inputColor(path);

adf.inputColor(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 ADFInputColor object specified by its recorded ID and path.

adf.inputColor(7, "/web:window[@index='0' or @title='InputColor Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputColor[@id='dmoTpl:iColor' and @label='Select a color']")
 .setValue("FFFFFF");

adf.inputComboboxListOfValues

Identifies an ADFInputComboboxListOfValues by its recorded ID and path.

Format

The adf.inputComboboxListOfValues method has the following command format(s):

adf.inputComboboxListOfValues(path);

adf.inputComboboxListOfValues(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 ADFInputComboboxListOfValues object specified by its recorded ID and path.

adf.inputComboboxListOfValues(7, "/web:window[@index='0' " +
   "or @title='inputComboboxListOfValues Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputComboboxListOfValues[" +
   @id='dmoTpl:idInputComboboxListOfValues' " +
   "and @label='Ename']")
 .showDropDown();

adf.inputDate

Identifies an ADFInputDate by its recorded ID and path.

Format

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

adf.inputDate(path);

adf.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 ADFInputDate object specified by its recorded ID and path.

adf.inputDate(9, "/web:window[@index='0' or @title='inputDate Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputDate[@id='dmoTpl:iDate' " +
   "and @label='Select a date: ']")
 .setValue("12/12/2010");

adf.inputFile

Identifies an ADFInputFile by its recorded ID and path.

Format

The adf.inputFile method has the following command format(s):

adf.inputFile(path);

adf.inputFile(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 ADFInputFile object specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.inputFile(7, "/web:window[@index='0' " +
   "or @title='inputFile Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputFile[@id='dmoTpl:testid' " +
   "and @label='File Upload']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
  if (key.equals("id") && attributes.get(key).equals("dmoTpl:testid"))
   pass_attr++;
  if (key.equals("value") && attributes.get(key).equals(""))
   pass_attr++;
  if (key.equals("label") && attributes.get(key).equals("File Upload"))
   pass_attr++;
  if (key.equals("required") && attributes.get(key).equals("False"))
   pass_attr++;
  //info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 4)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.inputListOfValues

Identifies an ADFInputListOfValues by its recorded ID and path.

Format

The adf.inputListOfValues method has the following command format(s):

adf.inputListOfValues(path);

adf.inputListOfValues(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 ADFInputListOfValues object specified by its recorded ID and path.

adf.inputListOfValues(7, "/web:window[@index='0' " +
   "or @title='inputListOfValues Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputListOfValues[@id='dmoTpl:idInputText' " +
   "and @label='Ename']")
 .setValue("test", "Click");

adf.inputNumberSlider

Identifies an ADFInputNumberSlider by its recorded ID and path.

Format

The adf.inputNumberSlider method has the following command format(s):

adf.inputNumberSlider(path);

adf.inputNumberSlider(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 ADFInputNumberSlider object specified by its recorded ID and path.

adf.inputNumberSlider(89, "/web:window[@index='0' " +
   "or @title='inputNumberSlider Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputNumberSlider[@id='dmoTpl:slider12' " +
   "and @label='Vertical Slider']")
 .setValue("300");

adf.inputNumberSpinbox

Identifies an ADFInputNumberSpinbox by its recorded ID and path.

Format

The adf.inputNumberSpinbox method has the following command format(s):

adf.inputNumberSpinbox(path);

adf.inputNumberSpinbox(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 ADFInputNumberSpinbox object specified by its recorded ID and path.

adf.inputNumberSpinbox(7, "/web:window[@index='0' " +
   "or @title='InputNumberSpinbox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputNumberSpinbox[@id='dmoTpl:idInputNumberSpinbox' " +
   "and @label='Label']")
 .setValue("2011");

adf.inputRangeSlider

Identifies an ADFInputRangeSlider by its recorded ID and path.

Format

The adf.inputRangeSlider method has the following command format(s):

adf.inputRangeSlider(path);

adf.inputRangeSlider(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 ADFInputRangeSlider object specified by its recorded ID and path.

adf.inputRangeSlider(113, "/web:window[@index='0' " +
   "or @title='inputRangeSlider Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputRangeSlider[@id='dmoTpl:rangeSlider1' " +
   "and @label='Horizontal Slider']")
 .setRange("0", "6");

adf.inputText

Identifies an ADFInputText by its recorded ID and path.

Format

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

adf.inputText(path);

adf.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 ADFInputText object specified by its recorded ID and path.

adf.inputText(68, "/web:window[@index='0' or @title='dialog Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFInputText[@id='dmoTpl:it1' and @label='* Required']")
 .setValue("1");

adf.menu

Identifies an ADFMenu by its recorded ID and path.

Format

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

adf.menu(path);

adf.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 ADFMenu object specified by its recorded ID and path.

adf.menu(44, "/web:window[@index='0' or @title='commandMenuItem Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFMenu[@id='dmoTpl:m1' and @text='File']")
 .clickShow();

adf.message

Identifies an ADFMessage by its recorded ID and path.

Format

The adf.message method has the following command format(s):

adf.message(path);

adf.message(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 ADFMessage object specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.message(7, "/web:window[@index='0' " +
   "or @title='message Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFMessage[@id='dmoTpl:message1']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:message1"))
   pass_attr++;
 if (key.equals("message") && attributes.get(key).equals(""))
   pass_attr++;
 if (key.equals("shortDesc") && attributes.get(key).equals(""))
   pass_attr++;
 if (key.equals("messageType") && attributes.get(key).equals("none"))
   pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 4)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.messages

Identifies an ADFMessages by its recorded ID and path.

Format

The adf.messages method has the following command format(s):

adf.messages(path);

adf.messages(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 ADFMessages object specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.messages(7, "/web:window[@index='0' " +
   "or @title='messages Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFMessages[@id='dmoTpl:messages1']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key)
   .equals("dmoTpl:messages1"))
           pass_attr++;
 if (key.equals("message") && attributes.get(key)
   .equals("Please read this carefully:"))
   pass_attr++;
 if (key.equals("shortDesc") && attributes.get(key)
   .equals("Sample shortDesc text"))
   pass_attr++;
 if (key.equals("rendererType") && attributes.get(key)
   .equals("oracle.adf.rich.Messages"))
   pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 4)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.navigationPane

Identifies an ADFNavigationPane by its recorded ID and path.

Format

The adf.navigationPane method has the following command format(s):

adf.navigationPane(path);

adf.navigationPane(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 ADFNavigationPane object specified by its recorded ID and path.

adf.navigationPane(152, "/web:window[@index='0' " +
   "or @title='navigationPane Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFNavigationPane[@id='dmoTpl:barExample']")
 .select("Bar Item 1", "xdc xh5");

adf.noteWindow

Identifies an ADFNoteWindow by its recorded ID and path.

Format

The adf.noteWindow method has the following command format(s):

adf.noteWindow(path);

adf.noteWindow(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 ADFNoteWindow object specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.noteWindow(
 7, "/web:window[@index='0' " +
   "or @title='noteWindow Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFNoteWindow[@id='dmoTpl:nw1']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:nw1"))
   pass_attr++;
 if (key.equals("content") && !attributes.get(key).equals(""))
   pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 2)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.outputFormatted

Identifies an ADFOutputFormatted by its recorded ID and path.

Format

The adf.outputFormatted method has the following command format(s):

adf.outputFormatted(path);

adf.outputFormatted(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 ADFOutputFormatted object specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.outputFormatted(7, "/web:window[@index='0' " +
   "or @title='outputFormatted Demo']" +
 "/web:document[@index='0' or @name='w0']" +
 "/web:ADFOutputFormatted[@id='dmoTpl:of3']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:of3"))
   pass_attr++;
 if (key.equals("displayText") && attributes.get(key).equals("This should be red"))
   pass_attr++;
 if (key.equals("value") && attributes.get(key)
   .equals("<SPAN style=\"COLOR: red\">This should be red</SPAN>"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key).equals("dmoTpl:of3"))
   pass_attr++;
}
if (pass_attr == 4)
   info("API getAttributes() passed");
else
   warn("API getAttributes() failed");
}

adf.outputLabel

Identifies an ADFOutputLabel by its recorded ID and path.

Format

The adf.outputLabel method has the following command format(s):

adf.outputLabel(path);

adf.outputLabel(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 ADFOutputLabelobject specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.outputLabel(
 7, "/web:window[@index='0' " +
   "or @title='outputLabel Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFOutputLabel[@id='dmoTpl:_OutputLabel']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:_OutputLabel"))
   pass_attr++;
 if (key.equals("value") && attributes.get(key).equals("Test Output Label"))
   pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 2)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.outputText

Identifies an ADFOutputText by its recorded ID and path.

Format

The adf.outputText method has the following command format(s):

adf.outputText(path);

adf.outputText(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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

Get value attribute from an ADFOutputText object specified by its recorded ID and path.

adf.outputText(7, "/web:window[@index='0' or @title='outputText Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFOutputText[@id='dmoTpl:ot1']")
 .getAttribute("value");

adf.page

Identifies an ADFPage by its recorded ID and path.

Format

The adf.page method has the following command format(s):

adf.page(path);

adf.page(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 ADFPage specified by its recorded ID and path.

adf.page(5, "/web:window[@index='0' or @title='Shop Fusion Order Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPage[@title='Shop Fusion Order Demo']")
 .waitForPage(10000);

adf.panelAccordion

Identifies an ADFPanelAccordion by its recorded ID and path.

Format

The adf.panelAccordion method has the following command format(s):

adf.panelAccordion(path);

adf.panelAccordion(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 ADFPanelAccordion specified by its recorded ID and path.

adf.panelAccordion(8, "/web:window[@index='0' " +
   "or @title='panelAccordion Demo']/" +
 "web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPanelAccordion[@id='dmoTpl:sampleAccordion']")
 .expand("dmoTpl:doubleFlexPane");

adf.panelBox

Identifies an ADFPanelBox by its recorded ID and path.

Format

The adf.panelBox method has the following command format(s):

adf.panelBox(path);

adf.panelBox(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 ADFPanelBox specified by its recorded ID and path.

adf.panelBox(8, "/web:window[@index='0' or @title='panelBox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPanelBox[@id='dmoTpl:panelBoxB3' " +
   "and @text='Highlight Light']")
.expand();

adf.panelHeader

Identifies an ADFPanelHeader by its recorded ID and path.

Format

The adf.panelHeader method has the following command format(s):

adf.panelHeader(path);

adf.panelHeader(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 ADFPanelHeaderobject specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.panelHeader(7, "/web:window[@index='0' " +
   "or @title='panelHeader Demo']" +
 "/web:document[@index='0' or @name='w0']" +
 "/web:ADFPanelHeader[@id='dmoTpl:panelHeader' " +
   "and @text='Automatic Header' " +
   "and @absoluteLocator='dmoTpl:panelHeader']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:panelHeader"))
   pass_attr++;
 if (key.equals("text") && attributes.get(key).equals("Automatic Header"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key).equals("dmoTpl:panelHeader"))
   pass_attr++;                               
}
if (pass_attr == 3)
   info("API getAttributes() passed");
else
   warn("API getAttributes() failed");
}

adf.panelLabelAndMessage

Identifies an ADFPanelLabelAndMessage by its recorded ID and path.

Format

The adf.panelLabelAndMessage method has the following command format(s):

adf.panelLabelAndMessage(path);

adf.panelLabelAndMessage(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 ADFPanelLabelAndMessageobject specified by its recorded ID and path.

import oracle.oats.scripting.modules.adf.api.elements.ADFPanelLabelAndMessage;
import java.util.Map;
[...]
Map<String, String> attributes = adf.panelLabelAndMessage(7, "/web:window[@index='0' " +
   "or @title='panelLabelAndMessage Demo']" +
 "/web:document[@index='0' or @name='w0']" +
 "/web:ADFPanelLabelAndMessage[@id='dmoTpl:panelLabelAndMessage' " +
   "and @absoluteLocator='dmoTpl:panelLabelAndMessage' and @label='Label']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:panelLabelAndMessage"))
   pass_attr++;
 if (key.equals("label") && attributes.get(key).equals("Label"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key)
   .equals("dmoTpl:panelLabelAndMessage"))
   pass_attr++;                               
}
if (pass_attr == 3)
   info("API getAttributes() passed");
else
   warn("API getAttributes() failed");
}

adf.panelList

Identifies an ADFPanelList by its recorded ID and path.

Format

The adf.panelList method has the following command format(s):

adf.panelList(path);

adf.panelList(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 ADFPanelList specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.panelList(8, "/web:window[@index='0' " +
   "or @title='panelList Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPanelList[@id='dmoTpl:panelList']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("dmoTpl:panelList"))
   pass_attr++;
 if (key.equals("maxColumns") && attributes.get(key).equals("3"))
   pass_attr++;
 if (key.equals("rows") && attributes.get(key).equals("2147483647"))
 pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 3)
 info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.panelSplitter

Identifies an ADFPanelSplitter by its recorded ID and path.

Format

The adf.panelSplitter method has the following command format(s):

adf.panelSplitter(path);

adf.panelSplitter(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 ADFPanelSplitter specified by its recorded ID and path.

adf.panelSplitter(6, "/web:window[@index='0' " +
   "or @title='panelSplitter Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPanelSplitter[@id='dmoTpl:outerSplitter']")
 .collapse();

adf.panelTabbed

Identifies an ADFPanelTabbed by its recorded ID and path.

Format

The adf.panelTabbed method has the following command format(s):

adf.panelTabbed(path);

adf.panelTabbed(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 ADFPanelTabbed specified by its recorded ID and path.

adf.panelTabbed(8, "/web:window[@index='0' or @title='panelTabbed Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFPanelTabbed[@id='dmoTpl:ShowOneTab']")
 .selectTab("");

adf.panelWindow

Identifies an ADFPanelWindow by its recorded ID and path.

Format

The adf.panelWindow method has the following command format(s):

adf.panelWindow(path);

adf.panelWindow(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 ADFPanelWindow specified by its recorded ID and path.

adf.commandButton(7, "/web:window[@index='0' or @title='panelWindow Demo']" +
 "/web:document[@index='0']" +
 "/web:ADFCommandButton[@id='dmoTpl:commandButton' " +
   "and @text='Show Window']")
.click();
adf.panelWindow(8, "/web:window[@index='0' or @title='panelWindow Demo']" +
 "/web:document[@index='0']" +
 "/web:ADFPanelWindow[@id='dmoTpl:panelWindow1' " +
   "and @title='Test Window']")
.clickCloseIcon();

adf.pivotTable

Identifies an ADFDVTPivotTable by its path.

Format

The adf.pivotTable method has the following command format(s):

adf.pivotTable(path);

adf.pivotTable(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 ADFDVTPivotTable object specified by its recorded ID and path.

Map<String, String> attributes =adf.pivotTable(7, "/web:window[@index='0' " +
   "or @title='PivotTable']" +
 "/web:document[@index='0' or @name='w0']" +
 "/web:ADFDVTPivotTable[@id='demo:pt1' and @absoluteLocator='demo:pt1']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key).equals("demo:pt1"))
   pass_attr++;
 if (key.equals("absoluteLocator") && attributes.get(key).equals("demo:pt1"))
   pass_attr++;               
}
if (pass_attr == 2)
   info("API getAttributes() passed");
else 
   warn("API getAttributes() failed");
}

adf.progressIndicator

Identifies an ADFProgressIndicator by its recorded ID and path.

Format

The adf.progressIndicator method has the following command format(s):

adf.progressIndicator(path);

adf.progressIndicator(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 ADFProgressIndicator specified by its recorded ID and path.

import java.util.Map;
[...]
Map<String, String> attributes = adf.progressIndicator(
 7, "/web:window[@index='0' or @title='progressIndicator Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFProgressIndicator[@id='dmoTpl:progressIndicator']")
 .getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
 if (key.equals("id") && attributes.get(key)
     .equals("dmoTpl:progressIndicator"))
   pass_attr++;
 if (key.equals("value") && attributes.get(key).equals("0%"))
   pass_attr++;
 // info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 2)
   info("API getAttributes() passed");
else {
   info(pass_attr + " attributes passed");
   fail("API getAttributes() failed");
}

adf.query

Identifies an ADFQuery by its recorded ID and path.

Format

The adf.query method has the following command format(s):

adf.query(path);

adf.query(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 ADFQuery specified by its recorded ID and path.

adf.query(11, "/web:window[@index='0' or @title='query Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFQuery[@id='dmoTpl:highSalariedClerksQueryId' " +
   "and @headerText='Search']")
 .clickButton("Search");

adf.quickQuery

Identifies an ADFQuickQuery by its recorded ID and path.

Format

The adf.quickQuery method has the following command format(s):

adf.quickQuery(path);

adf.quickQuery(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 ADFQuickQuery specified by its recorded ID and path.

adf.quickQuery(8, "/web:window[@index='0' or @title='quickQuery Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFQuickQuery[@id='dmoTpl:search' and @label='Search']")
 .click();

adf.region

Identifies an ADFRegion by its path.

Format

The adf.region method has the following command format(s):

adf.region(path);

adf.region(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 a select action on an ADFRegion object specified by its recorded ID and path.

adf.region(7, "/web:window[@index='0' or @title='region Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/ADFRegion[@id='dmoTpl:r1']")
 .expand;

adf.resetButton

Identifies an ADFResetButton by its recorded ID and path.

Format

The adf.resetButton method has the following command format(s):

adf.resetButton(path);

adf.resetButton(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 ADFResetButton object specified by its recorded ID and path.

adf.resetButton(351,"/web:window[@index='0' or @title='resetButton Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFResetButton[@id='dmoTpl:idResetButton' " +
   "and @text='Rich ResetButton']")
 .click();

adf.richTextEditor

Identifies an ADFRichTextEditor by its recorded ID and path.

Format

The adf.richTextEditor method has the following command format(s):

adf.richTextEditor(path);

adf.richTextEditor(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 ADFRichTextEditor object specified by its recorded ID and path.

adf.richTextEditor(35, "/web:window[@index='0' " +
   "or @title='richTextEditor Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFRichTextEditor[@id='dmoTpl:idRichTextEditor' " +
   "and @label='Rich text value']")
 .setValue("<P dir=ltr style=\"MARGIN-RIGHT: 0px\">Hello World</P>\r\n");

adf.selectBooleanCheckbox

Identifies an ADFSelectBooleanCheckbox by its recorded ID and path.

Format

The adf.selectBooleanCheckbox method has the following command format(s):

adf.selectBooleanCheckbox(path);

adf.selectBooleanCheckbox(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 ADFSelectBooleanCheckbox object specified by its recorded ID and path.

adf.selectBooleanCheckbox(47,"/web:window[@index='0' " +
   "or @title='selectBooleanCheckbox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectBooleanCheckbox[@id='dmoTpl:idSBC2' " +
   "and @label='Extra Keys']")
 .select();

adf.selectBooleanRadio

Identifies an ADFSelectBooleanRadio by its recorded ID and path.

Format

The adf.selectBooleanRadio method has the following command format(s):

adf.selectBooleanRadio(path);

adf.selectBooleanRadio(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 ADFSelectBooleanRadio object specified by its recorded ID and path.

adf.selectBooleanRadio(8, "/web:window[@index='0' " +
   "or @title='selectBooleanRadio Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectBooleanRadio[@id='dmoTpl:radio1' " +
   "and @label='Age']")
 .select("10-18");

adf.selectManyCheckbox

Identifies an ADFSelectManyCheckbox by its recorded ID and path.

Format

The adf.selectManyCheckbox method has the following command format(s):

adf.selectManyCheckbox(path);

adf.selectManyCheckbox(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 ADFSelectManyCheckbox object specified by its recorded ID and path.

adf.selectManyCheckbox(8, "/web:window[@index='0' " +
   "or @title='selectManyCheckbox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectManyCheckbox[@id='dmoTpl:targetListbox' " +
   "and @label='Drinks']")
 .select("milk", "4");

adf.selectManyChoice

Identifies an ADFSelectManyChoice by its recorded ID and path.

Format

The adf.selectManyChoice method has the following command format(s):

adf.selectManyChoice(path);

adf.selectManyChoice(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 ADFSelectManyChoice object specified by its recorded ID and path.

adf.selectManyChoice(7, "/web:window[@index='0' " +
   "or @title='selectManyChoice Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectManyChoice[@id='dmoTpl:targetChoice' " +
   "and @label='Drinks']")
 .select("coffee");

adf.selectManyListbox

Identifies an ADFSelectManyListbox by its recorded ID and path.

Format

The adf.selectManyListbox method has the following command format(s):

adf.selectManyListbox(path);

adf.selectManyListbox(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 ADFSelectManyListbox object specified by its recorded ID and path.

adf.selectManyListbox(8, "/web:window[@index='0' " +
   "or @title='selectManyListbox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectManyListbox[@id='dmoTpl:targetListbox' " +
   "and @label='Drinks']")
 .select("tea;green", "1");

adf.selectManyShuttle

Identifies an ADFSelectManyShuttle by its recorded ID and path.

Format

The adf.selectManyShuttle method has the following command format(s):

adf.selectManyShuttle(path);

adf.selectManyShuttle(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 ADFSelectManyShuttle object specified by its recorded ID and path.

adf.selectManyShuttle(18, "/web:window[@index='0' " +
   "or @title='selectManyShuttle Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectManyShuttle[@id='dmoTpl:manyShuttle' " +
 "and @label='Drinks']")
 .move();

adf.selectOneChoice

Identifies an ADFSelectOneChoice by its recorded ID and path.

Format

The adf.selectOneChoice method has the following command format(s):

adf.selectOneChoice(path);

adf.selectOneChoice(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 ADFSelectOneChoice object specified by its recorded ID and path.

adf.selectOneChoice(127, "/web:window[@index='0' " +
   "or @title='selectOneChoice Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectOneChoice[@id='dmoTpl:targetChoice' " +
   "and @label='Drink']")
 .select("coffee");

adf.selectOneListbox

Identifies an ADFSelectOneListbox by its recorded ID and path.

Format

The adf.selectOneListbox method has the following command format(s):

adf.selectOneListbox(path);

adf.selectOneListbox(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 ADFSelectOneListbox object specified by its recorded ID and path.

adf.selectOneListbox(7, "/web:window[@index='0' " +
   "or @title='selectOneListbox Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectOneListbox[@id='dmoTpl:targetListbox' " +
   "and @label='Drinks']")
 .select("tea;green");

adf.selectOneRadio

Identifies an ADFSelectOneRadio by its recorded ID and path.

Format

The adf.selectOneRadio method has the following command format(s):

adf.selectOneRadio(path);

adf.selectOneRadio(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 ADFSelectOneRadio object specified by its recorded ID and path.

adf.selectOneRadio(7, "/web:window[@index='0' " +
   "or @title='selectOneRadio Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectOneRadio[@id='dmoTpl:targetRadio' " +
   "and @label='Drinks']")
 .select("lemonade");

adf.selectOrderShuttle

Identifies an ADFSelectOrderShuttle by its recorded ID and path.

Format

The adf.selectOrderShuttle method has the following command format(s):

adf.selectOrderShuttle(path);

adf.selectOrderShuttle(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 ADFSelectOrderShuttle object specified by its recorded ID and path.

adf.selectOrderShuttle(11, "/web:window[@index='0' " +
   "or @title='selectOrderShuttle Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFSelectOrderShuttle[@id='dmoTpl:manyShuttle' " +
   "and @label='Drinks']")
 .moveUp();

adf.showDetail

Identifies an ADFShowDetail by its recorded ID and path.

Format

The adf.showDetail method has the following command format(s):

adf.showDetail(path);

adf.showDetail(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 ADFShowDetail object specified by its recorded ID and path.

adf.showDetail(7, "/web:window[@index='0' " +
   "or @title='showDetail Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFShowDetail[@id='dmoTpl:showDetail']")
 .expand();

adf.showDetailHeader

Identifies an ADFShowDetailHeader by its recorded ID and path.

Format

The adf.showDetailHeader method has the following command format(s):

adf.showDetailHeader(path);

adf.showDetailHeader(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 ADFShowDetailHeader object specified by its recorded ID and path.

adf.showDetailHeader(7, "/web:window[@index='0' " +
   "or @title='showDetailHeader Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFShowDetailHeader[@id='dmoTpl:showDetailHeader' " +
   "and @text='Automatic Header']")
 .expand();

adf.table

Identifies an ADFTable by its recorded ID and path.

Format

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

adf.table(path);

adf.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 ADFTable object specified by its recorded ID and path.

String getCell = adf.table(11, "/web:window[@index='0' " +
   "or @title='table Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFTable[@id='dmoTpl:table']")
 .getCell(1, 1);
info("Cell Value = " + getCell);

adf.toolbar

Identifies an ADFToolbar by its recorded ID and path.

Format

The adf.toolbar method has the following command format(s):

adf.toolbar(path);

adf.toolbar(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 ADFToolbar object specified by its recorded ID and path.

adf.toolbar(7, "/web:window[@index='0' " +
   "or @title='toolbar Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFToolbar[@id='dmoTpl:toolbar2']")
 .expand();

adf.train

Identifies an ADFTrain by its path.

Format

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

adf.train(path);

adf.train(recId, path);

Command Parameters

recId

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

path

a String specifying the object path.

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 ADFTrain object specified by its recorded ID and path.

adf.train(7, "/web:window[@index='0' or @title='train Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFTrain[@id='dmoTpl:train']")
 .clickNode("Current Step: Second Step");

adf.trainButtonBar

Identifies an ADFTrain by its recorded ID and path.

Format

The adf.trainButtonBar method has the following command format(s):

adf.trainButtonBar(path);

adf.trainButtonBar(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 ADFTrain object specified by its recorded ID and path.

adf.trainButtonBar(7, "/web:window[@index='0' " +
   "or @title='trainButtonBar Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFTrainButtonBar[@id='dmoTpl:trainBB']")
 .clickNode("next");

adf.tree

Identifies an ADFTree by its recorded ID and path.

Format

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

adf.tree(path);

adf.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 ADFTree object specified by its recorded ID and path.

adf.tree(14, "/web:window[@index='0' or @title='tree Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFTree[@id='dmoTpl:folderTree']")
 .expandCollapse("Expand", "2");

adf.treeTable

Identifies an ADFTreeTable by its recorded ID and path.

Format

The adf.treeTable method has the following command format(s):

adf.treeTable(path);

adf.treeTable(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 ADFTreeTable object specified by its recorded ID and path.

adf.treeTable(7, "/web:window[@index='0' or @title='treeTable Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']" +
 "/web:ADFTreeTable[@id='dmoTpl:folderTree']")
 .expandCollapse("Collapse", "2");

adf.waitForPageLoaded

Wait for ADF page to be fully loaded. It would use the object time out value as the default time out value.

Format

The adf.waitForPageLoaded method has the following command format(s):

adf.waitForPageLoaded(path);

adf.waitForPageLoaded(path, timeout);

Command Parameters

path

a String specifying the document path.

timeout

a Long specifying the timeout value (in miliseconds) of the wait action.

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

Wait for page fully loaded.

adf.waitForPageLoaded("/web:window[@index='0' " +
   "or @title='Shop Fusion Order Demo']" +
 "/web:document[@index='0' or @name='_afr_init_']", 3);