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 11-1 List of ADFService Methods
Method | Description |
---|---|
Identifies an ADFCalendar by its recorded ID and path. |
|
Identifies an ADFDVTGraph by its 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 recorded ID and path. |
|
Identifies an ADFCommandToolbarButton by its recorded ID and path. |
|
Identifies an ADFDialog by its recorded ID and path. |
|
Identifies an ADFDVTGraph by its recorded ID and path. |
|
Identifies an ADFGoMenuItem by its recorded ID and path. |
|
Identifies an ADFDVTGraph 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 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 ADFOutputFormat 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 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 ADFPanelTabbed by its recorded ID and path. |
|
Identifies an ADFPanelWindow by its recorded ID and 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 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 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 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.
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);
Identifies an ADFDVTGraph by its 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.
Performs an action on an ADFDVTGraph object specified by its recorded ID and path.
adf.graph(7, "/web:window[@index='0' or @title='treeTable Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/ADFDVTGauge[@id='dmoTpl:folderTree']")
.getAttribute("indicateValue");
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 recorded ID and 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.
adf.commandNavigationItem(7, "/web:window[@index='0' or @title='treeTable Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/ADFCommandNavigationItem[@id='dmoTpl:folderTree']");
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 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.
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();
Identifies an ADFDVTGraph by its recorded ID and 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 ADFDVTGraph object specified by its recorded ID and path.
adf.graph(7, "/web:window[@index='0' or @title='treeTable Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/ADFDVTGauge[@id='dmoTpl:folderTree']")
.getAttribute("indicateValue");
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.
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();
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.
Performs an action on an ADFDVTGraph object specified by its recorded ID and path.
adf.graph(7, "/web:window[@index='0' or @title='treeTable Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/ADFDVTGraph[@id='dmoTpl:folderTree']")
.getAttribute("seriesCount");
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.
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");
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.
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();
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 {
info(pass_attr + " attributes passed");
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++;
// 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 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 ADFOutputFormat 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 ADFOutputFormatobject 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:ADFOutputFormat[@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");
}
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 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");
}
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.
Performs an action on an ADFOutputText object specified by its recorded ID and path.
adf.outputText(7, "/web:window[@index='0' or @title='treeTable Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/web:ADFOutputText[@id='dmoTpl:folderTree']")
.getAttribute("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.
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);
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 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 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.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 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='outputLabel Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/web:ADFPanelHeader[@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");
}
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 ADFPanelLabelAndMessageobject specified by its recorded ID and path.
import java.util.Map;
[...]
Map<String, String> attributes = adf.panelLabelAndMessage(
7, "/web:window[@index='0' " +
"or @title='outputLabel Demo']" +
"/web:document[@index='0' or @name='_afr_init_']" +
"/web:ADFPanelLabelAndMessage[@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");
}
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 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");
}
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.
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();
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.
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("");
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 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 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 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 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.
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();
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.
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();
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 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.
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();
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.
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");
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.
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");
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.
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");
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.
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");
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.
the timeout value (milisecond) 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.
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);