This chapter provides a complete listing and reference for the methods in the OpenScript ADFService Class of ADF Module Application Programming Interface (API).
The following section provides an alphabetical listing of the methods in the OpenScript ADFService API.
The following table lists the ADFService API methods in alphabetical order.
Table 16-1 List of ADFService Methods
Method | Description |
---|---|
Identifies an ADFButton by its recorded ID and path. |
|
Identifies an ADFCalendar by its recorded ID and path. |
|
Identifies an ADFCarousel by its recorded ID and path. |
|
Identifies an ADFDVTChart by its recorded ID and path. |
|
Identifies an ADFCodeEditor by its recorded ID and path. |
|
Identifies an ADFCommandButton by its recorded ID and path. |
|
Identifies an ADFCommandImageLink by its recorded ID and path. |
|
Identifies an ADFCommandLink by its recorded ID and path. |
|
Identifies an ADFCommandMenuItem by its recorded ID and path. |
|
Identifies an ADFCommandNavigationItem by its path. |
|
Identifies an ADFCommandToolbarButton by its recorded ID and path. |
|
Identifies an ADFContextInfo by its recorded ID and path. |
|
Identifies an ADFDVTDiagram by its recorded ID and path. |
|
Identifies an ADFDialog by its recorded ID and path. |
|
Identifies an ADFDVTGauge by its path. |
|
Identifies an ADFGoButton by its path. |
|
Identifies an ADFGoImageLink by its path. |
|
Identifies an ADFGoLink by its path. |
|
Identifies an ADFGoMenuItem by its recorded ID and path. |
|
Identifies an ADFDVTGraph by its recorded ID and path. |
|
Identifies an ADFDVTHierarchyViewer by its recorded ID and path. |
|
Identifies an ADFImage by its recorded ID and path. |
|
Identifies an ADFInputColor by its recorded ID and path. |
|
Identifies an ADFInputComboboxListOfValues by its recorded ID and path. |
|
Identifies an ADFInputDate by its recorded ID and path. |
|
Identifies an ADFInputFile by its recorded ID and path. |
|
Identifies an ADFInputListOfValues by its recorded ID and path. |
|
Identifies an ADFInputNumberSlider by its recorded ID and path. |
|
Identifies an ADFInputNumberSpinbox by its recorded ID and path. |
|
Identifies an ADFInputRangeSlider by its recorded ID and path. |
|
Identifies an ADFInputText by its recorded ID and path. |
|
Identifies an ADFLink by its recorded ID and path. |
|
Identifies an ADFListItem by its recorded ID and path. |
|
Identifies an ADFListView by its recorded ID and path. |
|
Identifies an ADFMenu by its recorded ID and path. |
|
Identifies an ADFMessage by its recorded ID and path. |
|
Identifies an ADFMessages by its recorded ID and path. |
|
Identifies an ADFNavigationPane by its recorded ID and path. |
|
Identifies an ADFNoteWindow by its recorded ID and path. |
|
Identifies an ADFOutputFormatted by its recorded ID and path. |
|
Identifies an ADFOutputLabel by its recorded ID and path. |
|
Identifies an ADFOutputText by its recorded ID and path. |
|
Identifies an ADFPage by its recorded ID and path. |
|
Identifies an ADFPanelAccordion by its recorded ID and path. |
|
Identifies an ADFPanelBox by its recorded ID and path. |
|
Identifies an ADFPanelDrawer by its recorded ID and path. |
|
Identifies an ADFPanelHeader by its recorded ID and path. |
|
Identifies an ADFPanelLabelAndMessage by its recorded ID and path. |
|
Identifies an ADFPanelList by its recorded ID and path. |
|
Identifies an ADFPanelSplitter by its recorded ID and path. |
|
Identifies an ADFPanelSpringboard by its recorded ID and path. |
|
Identifies an ADFPanelTabbed by its recorded ID and path. |
|
Identifies an ADFPanelWindow by its recorded ID and path. |
|
Identifies an ADFDVTPivotTable by its path. |
|
Identifies an ADFProgressIndicator by its recorded ID and path. |
|
Identifies an ADFQuery by its recorded ID and path. |
|
Identifies an ADFQuickQuery by its recorded ID and path. |
|
Identifies an ADFRegion by its path. |
|
Identifies an ADFResetButton by its recorded ID and path. |
|
Identifies an ADFRichTextEditor by its recorded ID and path. |
|
Identifies an ADFSelectBooleanCheckbox by its recorded ID and path. |
|
Identifies an ADFSelectBooleanRadio by its recorded ID and path. |
|
Identifies an ADFSelectManyCheckbox by its recorded ID and path. |
|
Identifies an ADFSelectManyChoice by its recorded ID and path. |
|
Identifies an ADFSelectManyListbox by its recorded ID and path. |
|
Identifies an ADFSelectManyShuttle by its recorded ID and path. |
|
Identifies an ADFSelectOneChoice by its recorded ID and path. |
|
Identifies an ADFSelectOneListbox by its recorded ID and path. |
|
Identifies an ADFSelectOneRadio by its recorded ID and path. |
|
Identifies an ADFSelectOrderShuttle by its recorded ID and path. |
|
Identifies an ADFShowDetail by its recorded ID and path. |
|
Identifies an ADFShowDetailHeader by its recorded ID and path. |
|
Identifies an ADFDVTSunburstNode by its recorded ID and path. |
|
Identifies an ADFTable by its recorded ID and path. |
|
Identifies an ADFToolbar by its recorded ID and path. |
|
Identifies an ADFTrain by its path. |
|
Identifies an ADFTrain by its recorded ID and path. |
|
Identifies an ADFTree by its recorded ID and path. |
|
Identifies an ADFTreeTable by its recorded ID and path. |
|
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.
Identifies an ADFButton by its recorded ID and path.
The adf.button method has the following command format(s):
adf.button(path);
adf.button(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFCalendar by its recorded ID and path.
The adf.calendar method has the following command format(s):
adf.calendar(path);
adf.calendar(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFCarousel by its recorded ID and path.
The adf.carousel method has the following command format(s):
adf.carousel(path);
adf.carousel(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Identifies an ADFDVTChart by its recorded ID and path.
The adf.chart method has the following command format(s):
adf.chart(path);
adf.chart(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Identifies an ADFCodeEditor by its recorded ID and path.
The adf.codeEditor method has the following command format(s):
adf.codeEditor(path);
adf.codeEditor(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Performs a setValue action on an ADFCodeEditor object specified by its recorded ID and path.
adf.codeEditor(7, "/web:window[@index='0' or @title='Tag Guide']" +
"/web:ADFCodeEditor[@id='tmplt:abcCols:cols:0:secs:2:itms:13:cmd' " +
"and @text='tmplt:abcCols:cols:0:secs:2:itms:13:cmd']")
.setValue();
Identifies an ADFCommandButton by its recorded ID and path.
The adf.commandButton method has the following command format(s):
adf.commandButton(path);
adf.commandButton(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFCommandImageLink by its recorded ID and path.
The adf.commandImageLink method has the following command format(s):
adf.commandImageLink(path);
adf.commandImageLink(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFCommandLink by its recorded ID and path.
The adf.commandLink method has the following command format(s):
adf.commandLink(path);
adf.commandLink(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFCommandMenuItem by its recorded ID and path.
The adf.commandMenuItem method has the following command format(s):
adf.commandMenuItem(path);
adf.commandMenuItem(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFCommandNavigationItem by its path.
The adf.commandNavigationItem method has the following command format(s):
adf.commandNavigationItem(path);
adf.commandNavigationItem(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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");
}
Identifies an ADFCommandToolbarButton by its recorded ID and path.
The adf.commandToolbarButton method has the following command format(s):
adf.commandToolbarButton(path);
adf.commandToolbarButton(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFContextInfo by its recorded ID and path.
The adf.contextInfo method has the following command format(s):
adf.contextInfo(path);
adf.contextInfo(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFDVTDiagram by its recorded ID and path.
The adf.diagram method has the following command format(s):
adf.diagram(path);
adf.diagram(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFDVTDiagram object specified by its recorded ID and path.
adf.diagram(27,"/web:window[@index='0' or @title='Dependency Graph Demo']" + "/web:document[@index='0' or @name='9pqocazpp']" + "/web:ADFDVTDiagram[@absoluteLocator='r5:DEPENDENCYGRAPH']") .leftClick("node[19]:ecardIconLayout"); ADFDVTDiagramNode node = adf.diagram(27,"/web:window[@index='0' " + "or @title='Dependency Graph Demo']" + "/web:document[@index='0' or @name='9pqocazpp']" + "/web:ADFDVTDiagram[@absoluteLocator='r5:DEPENDENCYGRAPH']") .getNode("node[1]"); info(node.getShortDesc()); adf.diagram(33,"/web:window[@index='0' or @title='Dependency Graph Demo']" + "/web:document[@index='0' or @name='9pqocazpp']" + "/web:ADFDVTDiagram[@absoluteLocator='r5:DEPENDENCYGRAPH']") .rightClick("node[0]:titlePanel2");
Identifies an ADFDialog by its recorded ID and path.
The adf.dialog method has the following command format(s):
adf.dialog(path);
adf.dialog(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFDVTGauge by its path.
The adf.gauge method has the following command format(s):
adf.gauge(path);
adf.gauge(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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");
}
Identifies an ADFGoButton by its path.
The adf.goButton method has the following command format(s):
adf.goButton(path);
adf.goButton(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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 example.com']")
.click();
Identifies an ADFGoImageLink by its path.
The adf.goImageLink method has the following command format(s):
adf.goImageLink(path);
adf.goImageLink(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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 example.com']")
.click();
Identifies an ADFGoLink by its path.
The adf.goLink method has the following command format(s):
adf.goLink(path);
adf.goLink(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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 example.com']")
.click();
Identifies an ADFGoMenuItem by its recorded ID and path.
The adf.goMenuItem method has the following command format(s):
adf.goMenuItem(path);
adf.goMenuItem(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFDVTGraph by its recorded ID and path.
The adf.graph method has the following command format(s):
adf.graph(path);
adf.graph(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Identifies an ADFDVTHierarchyViewer by its recorded ID and path.
The adf.hierarchyViewer method has the following command format(s):
adf.hierarchyViewer(path);
adf.hierarchyViewer(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Defines an ADFDVTHierarchyViewer object specified by its recorded ID and path.
ADFDVTHierarchyViewer hv = adf.hierarchyViewer(6, "/web:window[@index='0' " +
"or @title='pivotTable']" +
"/web:document[@index='0' or @name='n6ceri8cu']" +
"/web:ADFDVTHierarchyViewer[@absoluteLocator='demo:hv1']");
Identifies an ADFImage by its recorded ID and path.
The adf.image method has the following command format(s):
adf.image(path);
adf.image(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFInputColor by its recorded ID and path.
The adf.inputColor method has the following command format(s):
adf.inputColor(path);
adf.inputColor(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputComboboxListOfValues by its recorded ID and path.
The adf.inputComboboxListOfValues method has the following command format(s):
adf.inputComboboxListOfValues(path);
adf.inputComboboxListOfValues(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFInputDate by its recorded ID and path.
The adf.inputDate method has the following command format(s):
adf.inputDate(path);
adf.inputDate(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputFile by its recorded ID and path.
The adf.inputFile method has the following command format(s):
adf.inputFile(path);
adf.inputFile(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
}
Identifies an ADFInputListOfValues by its recorded ID and path.
The adf.inputListOfValues method has the following command format(s):
adf.inputListOfValues(path);
adf.inputListOfValues(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputNumberSlider by its recorded ID and path.
The adf.inputNumberSlider method has the following command format(s):
adf.inputNumberSlider(path);
adf.inputNumberSlider(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputNumberSpinbox by its recorded ID and path.
The adf.inputNumberSpinbox method has the following command format(s):
adf.inputNumberSpinbox(path);
adf.inputNumberSpinbox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputRangeSlider by its recorded ID and path.
The adf.inputRangeSlider method has the following command format(s):
adf.inputRangeSlider(path);
adf.inputRangeSlider(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFInputText by its recorded ID and path.
The adf.inputText method has the following command format(s):
adf.inputText(path);
adf.inputText(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFLink by its recorded ID and path.
The adf.link method has the following command format(s):
adf.link(path);
adf.link(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFListItem by its recorded ID and path.
The adf.listItem method has the following command format(s):
adf.listItem(path);
adf.listItem(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Gets the attributes of an ADFListItem object specified by its recorded ID and path.
import java.util.Map;
[...]
Map<String, String> attributes = adf.listItem(0, "/web:window[@index='0' " +
"or @title='listItem']" +
"/web:document[@index='0' or @name='n6ceri8cu']" +
"/web:ADFListItem[@id='demo:t1' or @absoluteLocator='demo:t1']")
.getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
if (key.equals("id") && attributes.get(key)
.equals("demo:t1"))
pass_attr++;
if (key.equals("absoluteLocator") && attributes.get(key)
.equals("demo:t1"))
pass_attr++;
// info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr == 2)
info("API getAttributes() passed");
else
fail("API getAttributes() failed");
Identifies an ADFListView by its recorded ID and path.
The adf.listView method has the following command format(s):
adf.listView(path);
adf.listView(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Defines an ADFListView object specified by its recorded ID and path.
ADFListView view = adf.listView(0, "/web:window[@index='0' " +
"or @title='listView']" +
"/web:document[@index='0' or @name='n6ceri8cu']" +
"/web:ADFListView[@id='demo:t1' or @absoluteLocator='demo:t1']");
int count = view.getItemCount();
info("item count = " + count);
Identifies an ADFMenu by its recorded ID and path.
The adf.menu method has the following command format(s):
adf.menu(path);
adf.menu(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFMessage by its recorded ID and path.
The adf.message method has the following command format(s):
adf.message(path);
adf.message(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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 {
fail("API getAttributes() failed");
}
Identifies an ADFMessages by its recorded ID and path.
The adf.messages method has the following command format(s):
adf.messages(path);
adf.messages(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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++;
}
if (pass_attr == 4)
info("API getAttributes() passed");
else {
fail("API getAttributes() failed");
}
Identifies an ADFNavigationPane by its recorded ID and path.
The adf.navigationPane method has the following command format(s):
adf.navigationPane(path);
adf.navigationPane(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFNoteWindow by its recorded ID and path.
The adf.noteWindow method has the following command format(s):
adf.noteWindow(path);
adf.noteWindow(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
}
Identifies an ADFOutputFormatted by its recorded ID and path.
The adf.outputFormatted method has the following command format(s):
adf.outputFormatted(path);
adf.outputFormatted(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFOutputFormatted object specified by its path.
import java.util.Map;
[...]
Map<String, String> attributes = adf.outputFormatted("/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");
}
Identifies an ADFOutputLabel by its recorded ID and path.
The adf.outputLabel method has the following command format(s):
adf.outputLabel(path);
adf.outputLabel(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFOutputLabel object 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 {
fail("API getAttributes() failed");
}
Identifies an ADFOutputText by its recorded ID and path.
The adf.outputText method has the following command format(s):
adf.outputText(path);
adf.outputText(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Get value attribute from an ADFOutputText object specified by its recorded ID and path.
String value = 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");
info("value = " + value);
Identifies an ADFPage by its recorded ID and path.
The adf.page method has the following command format(s):
adf.page(path);
adf.page(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFPanelAccordion by its recorded ID and path.
The adf.panelAccordion method has the following command format(s):
adf.panelAccordion(path);
adf.panelAccordion(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelAccordion object 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");
Identifies an ADFPanelBox by its recorded ID and path.
The adf.panelBox method has the following command format(s):
adf.panelBox(path);
adf.panelBox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelBox object 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();
Identifies an ADFPanelHeader by its recorded ID and path.
The adf.panelDrawer method has the following command format(s):
adf.panelDrawer(path);
adf.panelDrawer(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelDrawer object specified by its recorded ID and path.
import java.util.Map;
[...]
Map<String, String> attributes = adf.panelDrawer(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:panelDrawer']")
.getAttributes();
int pass_attr = 0;
for (String key : attributes.keySet()) {
if (key.equals("id") && attributes.get(key).equals("dmoTpl:panelDrawer"))
pass_attr++;
if (key.equals("absoluteLocator") && attributes.get(key).equals("dmoTpl:panelDrawer"))
pass_attr++;
}
if (pass_attr == 2)
info("API getAttributes() passed");
else
warn("API getAttributes() failed");
}
Identifies an ADFPanelHeader by its recorded ID and path.
The adf.panelHeader method has the following command format(s):
adf.panelHeader(path);
adf.panelHeader(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelHeader object 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:panelDrawer"))
pass_attr++;
}
if (pass_attr == 3)
info("API getAttributes() passed");
else
warn("API getAttributes() failed");
}
Identifies an ADFPanelLabelAndMessage by its recorded ID and path.
The adf.panelLabelAndMessage method has the following command format(s):
adf.panelLabelAndMessage(path);
adf.panelLabelAndMessage(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelLabelAndMessage object 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");
}
Identifies an ADFPanelList by its recorded ID and path.
The adf.panelList method has the following command format(s):
adf.panelList(path);
adf.panelList(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelList object 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 {
fail("API getAttributes() failed");
}
Identifies an ADFPanelSplitter by its recorded ID and path.
The adf.panelSplitter method has the following command format(s):
adf.panelSplitter(path);
adf.panelSplitter(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFPanelSpringboard by its recorded ID and path.
The adf.panelSpringboard method has the following command format(s):
adf.panelSpringboard(path);
adf.panelSpringboard(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Defines an ADFPanelSpringboard object specified by its recorded ID and path.
ADFPanelSpringboard springboard = adf.panelSpringboard(6, + "/web:window[@index='0'or @title='panelSpringboard']" +
"/web:document[@index='0' or @name='n6ceri8cu']" +
"/web:ADFPanelSpringboard[@absoluteLocator='demo:ps1']");
String itemName = springboard.getSelectedItemName();
info("itemName = " + itemName);
Identifies an ADFPanelTabbed by its recorded ID and path.
The adf.panelTabbed method has the following command format(s):
adf.panelTabbed(path);
adf.panelTabbed(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFPanelWindow by its recorded ID and path.
The adf.panelWindow method has the following command format(s):
adf.panelWindow(path);
adf.panelWindow(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFPanelWindow object 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();
Identifies an ADFDVTPivotTable by its path.
The adf.pivotTable method has the following command format(s):
adf.pivotTable(path);
adf.pivotTable(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
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");
}
Identifies an ADFProgressIndicator by its recorded ID and path.
The adf.progressIndicator method has the following command format(s):
adf.progressIndicator(path);
adf.progressIndicator(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFProgressIndicator object 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");
}
Identifies an ADFQuery by its recorded ID and path.
The adf.query method has the following command format(s):
adf.query(path);
adf.query(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Performs an action on an ADFQuery object 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");
Identifies an ADFQuickQuery by its recorded ID and path.
The adf.quickQuery method has the following command format(s):
adf.quickQuery(path);
adf.quickQuery(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFRegion by its path.
The adf.region method has the following command format(s):
adf.region(path);
adf.region(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Identifies an ADFResetButton by its recorded ID and path.
The adf.resetButton method has the following command format(s):
adf.resetButton(path);
adf.resetButton(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFRichTextEditor by its recorded ID and path.
The adf.richTextEditor method has the following command format(s):
adf.richTextEditor(path);
adf.richTextEditor(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectBooleanCheckbox by its recorded ID and path.
The adf.selectBooleanCheckbox method has the following command format(s):
adf.selectBooleanCheckbox(path);
adf.selectBooleanCheckbox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFSelectBooleanRadio by its recorded ID and path.
The adf.selectBooleanRadio method has the following command format(s):
adf.selectBooleanRadio(path);
adf.selectBooleanRadio(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectManyCheckbox by its recorded ID and path.
The adf.selectManyCheckbox method has the following command format(s):
adf.selectManyCheckbox(path);
adf.selectManyCheckbox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectManyChoice by its recorded ID and path.
The adf.selectManyChoice method has the following command format(s):
adf.selectManyChoice(path);
adf.selectManyChoice(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectManyListbox by its recorded ID and path.
The adf.selectManyListbox method has the following command format(s):
adf.selectManyListbox(path);
adf.selectManyListbox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectManyShuttle by its recorded ID and path.
The adf.selectManyShuttle method has the following command format(s):
adf.selectManyShuttle(path);
adf.selectManyShuttle(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFSelectOneChoice by its recorded ID and path.
The adf.selectOneChoice method has the following command format(s):
adf.selectOneChoice(path);
adf.selectOneChoice(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectOneListbox by its recorded ID and path.
The adf.selectOneListbox method has the following command format(s):
adf.selectOneListbox(path);
adf.selectOneListbox(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectOneRadio by its recorded ID and path.
The adf.selectOneRadio method has the following command format(s):
adf.selectOneRadio(path);
adf.selectOneRadio(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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");
Identifies an ADFSelectOrderShuttle by its recorded ID and path.
The adf.selectOrderShuttle method has the following command format(s):
adf.selectOrderShuttle(path);
adf.selectOrderShuttle(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFShowDetail by its recorded ID and path.
The adf.showDetail method has the following command format(s):
adf.showDetail(path);
adf.showDetail(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFShowDetailHeader by its recorded ID and path.
The adf.showDetailHeader method has the following command format(s):
adf.showDetailHeader(path);
adf.showDetailHeader(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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();
Identifies an ADFDVTSunburst by its recorded ID and path.
The adf.sunburst method has the following command format(s):
adf.sunburst(path);
adf.sunburst(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Gets the attributes of an ADFDVTSunburst object specified by its recorded ID and path.
Map<String, String> attributes1 = adf.sunburst(11,
"/web:window[@index='0' or @title='sunburst']" +
"/web:document[@index='0' or @name='wp410']" +
"/web:ADFDVTSunburst[@id='demo:sunburst1' " +
"and @absoluteLocator='demo:sunburst1']")
.getAttributes();
int pass_attr1 = 0;
for (String key : attributes.keySet()) {
if (key.equals("id") && attributes.get(key)
.equals("demo:sunburst1"))
pass_attr1++;
if (key.equals("absoluteLocator") && attributes.get(key)
.equals("demo:sunburst1"))
pass_attr1++;
info("Attribute: " + key + " ; " + "Value: " + attributes.get(key));
}
if (pass_attr1 == 2)
info("API getAttributes() passed");
else
warn("API getAttributes() failed");
Identifies an ADFTable by its recorded ID and path.
The adf.table method has the following command format(s):
adf.table(path);
adf.table(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
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);
Identifies an ADFToolbar by its recorded ID and path.
The adf.toolbar method has the following command format(s):
adf.toolbar(path);
adf.toolbar(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFTrain by its path.
The adf.train method has the following command format(s):
adf.train(path);
adf.train(recId, path);
the ID of a previously recorded navigation, used for comparison purposes.
a String specifying the object path.
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.
Identifies an ADFTrain by its recorded ID and path.
The adf.trainButtonBar method has the following command format(s):
adf.trainButtonBar(path);
adf.trainButtonBar(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFTree by its recorded ID and path.
The adf.tree method has the following command format(s):
adf.tree(path);
adf.tree(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Identifies an ADFTreeTable by its recorded ID and path.
The adf.treeTable method has the following command format(s):
adf.treeTable(path);
adf.treeTable(recId, path);
a String specifying the object path.
the ID of a previously recorded navigation, used for comparison purposes.
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.
Wait for ADF page to be fully loaded. It would use the object time out value as the default time out value.
The adf.waitForPageLoaded method has the following command format(s):
adf.waitForPageLoaded(path);
adf.waitForPageLoaded(path, timeout);
a String specifying the document path.
a Long specifying the timeout value (in miliseconds) of the wait action.
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.