This chapter provides a complete listing and reference for the methods in the OpenScript FlexFTService Class of Flex Functional Module Application Programming Interface (API).
The following section provides an alphabetical listing of the methods in the OpenScript FlexFTService API.
The following table lists the FlexFTService API methods in alphabetical order.
Table 11-1 List of FlexFTService Methods
Method | Description |
---|---|
Creates a Flex Accordion element. |
|
Creates a Flex Alert element. |
|
Creates a Flex Application element. |
|
Creates a Flex AreaChart element. |
|
Creates a Flex AreaSeries element. |
|
Creates a Flex BarChart element. |
|
Creates a Flex BarSeries element. |
|
Creates a Flex Box element. |
|
Creates a Flex BubbleSeries element. |
|
Creates a Flex Button element. |
|
Creates a Flex ButtonBar element. |
|
Creates a Flex CartesianChart element. |
|
Creates a Flex CheckBox element. |
|
Creates a Flex ColorPicker element. |
|
Creates a Flex ColumnChart element. |
|
Creates a Flex ColumnSeries element. |
|
Creates a Flex ComboBox element. |
|
Creates a Flex DataGrid element. |
|
Creates a Flex DateChooser element. |
|
Creates a Flex DateField element. |
|
Creates a Flex DividedBox element. |
|
Creates a Flex LineChart element. |
|
Creates a Flex LineSeries element. |
|
Creates a Flex LinkBar element. |
|
Creates a Flex List element. |
|
Creates a Flex Menu element. |
|
Creates a Flex MenuBar element. |
|
Creates a Flex NumericStepper element. |
|
Creates a Flex Panel element. |
|
Creates a Flex PieChart element. |
|
Creates a Flex PieSeries element. |
|
Creates a Flex PlotSeries element. |
|
Creates a Flex PopUpButton element. |
|
Creates a Flex ProgressBar element. |
|
Creates a Flex RadioButton element. |
|
Creates a Flex ScrollBar element. |
|
Creates a Flex Slider element. |
|
Creates a Flex ToggleButtonBar element. |
|
Creates a Flex Tree element. |
The following sections provide detailed reference information for each method and enum in the FlexFTService Class of Flex Functional Module Application Programming Interface.
Creates a Flex Accordion element.
The flexFT.accordion method has the following command format(s):
flexFT.accordion(path);
flexFT.accordion(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Accordion element.
String accordion="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='explorer' " + "and @label='' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @automationName='index:0']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @automationName='index:1']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='loaderPanel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @id='swfLoader']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='AccordionExample' " + "and @label='' " + "and @automationIndex='index:1' " + "and @automationName='containers/AccordionExample.swf' " + "and @id='null']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='mx.containers.Panel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='Accordion%20Container%20Example' " + "and @id='null']" + "/flex:accordion[@automationClassName='FlexAccordion' " + "and @className='mx.containers.Accordion' " + "and @label='' " + "and @automationIndex='index:1' " + "and @automationName='accordion' " + "and @id='accordion']"; flexFT.accordion(10, accordion).change("Accordion Button for Panel 2"); try{ String result=flexFT.accordion(15, accordion).getSelectedChild(); if (!result.equals("Accordion Button for Panel 2")) { warn("getSelectedChild returned " + result); } }catch(Exception exp) {warn("getSelectedChild exception: " + exp.getMessage());} try{ Integer result=flexFT.accordion(20, accordion).getSelectedIndex(); if (result !=1) { warn("getSelectedIndex returned " + result); } }catch(Exception exp) {warn("getSelectedIndex exception: " + exp.getMessage());}
Creates a Flex Alert element.
The flexFT.alert method has the following command format(s):
flexFT.alert(path);
flexFT.alert(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on a Flex Alert element.
String Alert="/web:window[@index='0']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:alert[@automationName='Color%20Selection' " +
"and @automationClassName='FlexAlert' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='mx.controls.Alert' " +
"and @id='null']";
try{
String result=flexFT.alert(10, Alert).getText();
if (!result.equals("Select a color:")) {
warn("getText returned " + result);
}
}catch(Exception exp) {warn("getText exception: "
+ exp.getMessage());}
Creates a Flex Application element.
The flexFT.application method has the following command format(s):
flexFT.application(path);
flexFT.application(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Application element.
String application="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='explorer' " + "and @label='' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @automationName='index:0']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @automationName='index:1']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='loaderPanel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @id='swfLoader']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='SimpleApplicationExample' " + "and @label='' and @automationIndex='index:1' " + "and @automationName='core/SimpleApplicationExample.swf' " + "and @id='null']"; flexFT.application(10, application).click(KeyModifier.None); try{ String result=flexFT.application(15, application).getUrl(); if (!result.equals("http://example.com/core/SimpleApplicationExample.swf")) { warn("getUrl returned " + result); } }catch(Exception exp) {warn("getUrl exception: " + exp.getMessage());}
Creates a Flex AreaChart element.
The flexFT.areaChart method has the following command format(s):
flexFT.areaChart(path);
flexFT.areaChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex AreaChart element.
String areaChart="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/Line_AreaChartExample.swf' " + "and @label='' " + "and @className='Line_AreaChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='LineChart%20and%20AreaChart%20Controls%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:areaChart[@automationIndex='index:5' " + "and @automationClassName='FlexAreaChart' " + "and @automationName='Areachart' " + "and @className='mx.charts.AreaChart' " + "and @id='Areachart']"; flexFT.areaChart(10, areaChart).click(KeyModifier.None); try{ String result=flexFT.areaChart(15, areaChart).getType(); if (!result.equals("overlaid")) { warn("getType returned " + result); } }catch(Exception exp) {warn("getType exception: " + exp.getMessage());}
Creates a Flex AreaSeries element.
The flexFT.areaSeries method has the following command format(s):
flexFT.areaSeries(path);
flexFT.areaSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex AreaSeries element.
String areaSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationName='charts/Line_AreaChartExample.swf' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:1' " + "and @label='' " + "and @className='Line_AreaChartExample' " + "and @id='null']" + "/flex:panel[@automationName='LineChart%20and%20AreaChart%20Controls%20Example' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:areaChart[@automationName='Areachart' " + "and @automationClassName='FlexAreaChart' " + "and @automationIndex='index:5' " + "and @className='mx.charts.AreaChart' " + "and @id='Areachart']" + "/flex:areaSeries[@automationName='Expenses' " + "and @automationClassName='FlexAreaSeries' " + "and @automationIndex='index:1' " + "and @className='mx.charts.series.AreaSeries' " + "and @id='_Line_AreaChartExample_AreaSeries2']"; flexFT.areaSeries(10, areaSeries).clickSeries(2.0); try{ String result=flexFT.areaSeries(15, areaSeries).getXField(); if (!result.equals("")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.areaSeries(20, areaSeries).getYField(); if (!result.equals("Expenses")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex BarChart element.
The flexFT.barChart method has the following command format(s):
flexFT.barChart(path);
flexFT.barChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex BarChart element.
String barChart="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/Column_BarChartExample.swf' " + "and @label='' " + "and @className='Column_BarChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='ColumnChart%20and%20BarChart%20Controls%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:barChart[@automationIndex='index:5' " + "and @automationClassName='FlexBarChart' " + "and @automationName='bar' " + "and @className='mx.charts.BarChart' " + "and @id='bar']"; flexFT.barChart(10, barChart).click(KeyModifier.None); try{ Double result=flexFT.barChart(15, barChart).getBarWidthRatio(); if (result !=0.65) { warn("getBarWidthRatio returned " + result); } }catch(Exception exp) {warn("getBarWidthRatio exception: " + exp.getMessage());} try{ Double result=flexFT.barChart(20, barChart).getMaxBarWidth(); if (result !=null) { warn("getMaxBarWidth returned " + result); } }catch(Exception exp) {warn("getMaxBarWidth exception: " + exp.getMessage());}
Creates a Flex BarSeries element.
The flexFT.barSeries method has the following command format(s):
flexFT.barSeries(path);
flexFT.barSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex BarSeries element.
String barSeries= "/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/Column_BarChartExample.swf' " + "and @label='' " + "and @className='Column_BarChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='ColumnChart%20and%20BarChart%20Controls%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:barChart[@automationIndex='index:5' " + "and @automationClassName='FlexBarChart' " + "and @automationName='bar' " + "and @className='mx.charts.BarChart' " + "and @id='bar']" + "/flex:barSeries[@automationIndex='index:1' " + "and @automationClassName='FlexBarSeries' " + "and @automationName='Silver;Country' " + "and @className='mx.charts.series.BarSeries' " + "and @id='_Column_BarChartExample_BarSeries2']"; flexFT.barSeries(10, barSeries).clickSeries(1.0); try{ String result=flexFT.barSeries(15, barSeries).getXField(); if (!result.equals("Silver")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.barSeries(20, barSeries).getYField(); if (!result.equals("Country")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex Box element.
The flexFT.box method has the following command format(s):
flexFT.box(path);
flexFT.box(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Box element.
String box="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='explorer' " + "and @label='' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @automationName='index:0']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @automationName='index:1']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='loaderPanel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @id='swfLoader']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='SimpleCanvasExample' " + "and @label='' " + "and @automationIndex='index:1' " + "and @automationName='containers/SimpleCanvasExample.swf' " + "and @id='null']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='mx.containers.Panel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='Canvas%20Container%20Example' " + "and @id='null']" + "/flex:box[@automationClassName='FlexBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:6' " + "and @className='mx.containers.VBox' " + "and @automationName='index:6']"; flexFT.box(10, box).click(KeyModifier.None); try{ String result=flexFT.box(15, box).getDirection(); if (!result.equals("vertical")) { warn("getDirection returned " + result); } }catch(Exception exp) {warn("getDirection exception: " + exp.getMessage());}
Creates a Flex BubbleSeries element.
The flexFT.bubbleSeries method has the following command format(s):
flexFT.bubbleSeries(path);
flexFT.bubbleSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex BubbleSeries element.
String bubbleSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/BubbleChartExample.swf' " + "and @label='' " + "and @className='BubbleChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='BubbleChart%20Control%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:cartesianChart[@automationIndex='index:0' " + "and @automationClassName='FlexCartesianChart' " + "and @automationName='bubblechart' " + "and @className='mx.charts.BubbleChart' " + "and @id='bubblechart']" + "/flex:bubbleSeries[@automationIndex='index:0' " + "and @automationClassName='FlexBubbleSeries' " + "and @automationName='Profit/Expenses/Amount' " + "and @className='mx.charts.series.BubbleSeries' " + "and @id='_BubbleChartExample_BubbleSeries1']"; flexFT.bubbleSeries(10, bubbleSeries).clickSeries(1.0); try{ String result=flexFT.bubbleSeries(15, bubbleSeries).getXField(); if (!result.equals("Profit")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.bubbleSeries(20, bubbleSeries).getYField(); if (!result.equals("Expenses")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex Button element.
The flexFT.button method has the following command format(s):
flexFT.button(path);
flexFT.button(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on a Flex Button element.
String Button="/web:window[@index='0']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' a" +
"nd @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/SimpleAlert.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='SimpleAlert' " +
"and @id='null']" +
"/flex:panel[@automationName='Alert%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' and @id='null']" +
"/flex:button[@automationName='Click%20Me' " +
"and @automationClassName='FlexButton' " +
"and @automationIndex='index:6' " +
"and @label='Click%20Me' " +
"and @className='mx.controls.Button' " +
"and @id='null']";
flexFT.button(10, Button).click(KeyModifier.None);
Creates a Flex ButtonBar element.
The flexFT.buttonBar method has the following command format(s):
flexFT.buttonBar(path);
flexFT.buttonBar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex buttonBar element.
String ButtonBar="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @id='explorer' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:0' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @label='']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:1' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @label='']" + "/flex:panel[@automationName='swfLoader' " + "and @id='swfLoader' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:application[@automationName='controls/ButtonBarExample.swf' " + "and @id='null' " + "and @className='ButtonBarExample' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:panel[@automationName='ButtonBar%20Control%20Example' " + "and @id='null' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:buttonBar[@id='null' " + "and @automationIndex='index:2' " + "and @automationClassName='FlexButtonBar' " + "and @automationName='index:2' " + "and @className='mx.controls.ButtonBar' " + "and @label='']"; flexFT.buttonBar(10, ButtonBar).change("Flash"); { think(10.5); } flexFT.buttonBar(15, ButtonBar).type("EnterKey", KeyModifier.None);
Creates a Flex CartesianChart element.
The flexFT.cartesianChart method has the following command format(s):
flexFT.cartesianChart(path);
flexFT.cartesianChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex CartesianChart element.
String cartesianChart="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/PlotChartExample.swf' " + "and @label='' " + "and @className='PlotChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='PlotChart%20Control%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:cartesianChart[@automationIndex='index:0' " + "and @automationClassName='FlexCartesianChart' " + "and @automationName='plot' " + "and @className='mx.charts.PlotChart' " + "and @id='plot']"; flexFT.cartesianChart(10, cartesianChart).click(KeyModifier.None); * try{ String result=flexFT.cartesianChart(15, cartesianChart).getTextAlign() ; if (!result.equals("left")) { warn("getTextAlign returned " + result); } }catch(Exception exp) {warn("getTextAlign exception: " + exp.getMessage());}
Creates a Flex CheckBox element.
The flexFT.checkbox method has the following command format(s):
flexFT.checkbox(path);
flexFT.checkbox(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex checkBox element.
String CheckBox="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @id='explorer' " +
"and @className='explorer' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @automationClassName='FlexApplication']" +
"/flex:dividedBox[@id='null' " +
"and @automationIndex='index:0' " +
"and @automationClassName='FlexDividedBox' " +
"and @automationName='index:0' " +
"and @className='mx.containers.HDividedBox' " +
"and @label='']" +
"/flex:dividedBox[@id='null' " +
"and @automationIndex='index:1' " +
"and @automationClassName='FlexDividedBox' " +
"and @automationName='index:1' " +
"and @className='mx.containers.VDividedBox' " +
"and @label='']" +
"/flex:panel[@automationName='swfLoader' " +
"and @id='swfLoader' " +
"and @className='loaderPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @automationClassName='FlexPanel']" +
"/flex:application[@automationName='controls/CheckBoxExample.swf' " +
"and @id='null' " +
"and @className='CheckBoxExample' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @automationClassName='FlexApplication']" +
"/flex:panel[@automationName='CheckBox%20Control%20Example' " +
"and @id='null' " +
"and @className='mx.containers.Panel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @automationClassName='FlexPanel']" +
"/flex:checkbox[@automationName='milk' " +
"and @id='milkCB' " +
"and @className='mx.controls.CheckBox' " +
"and @automationIndex='index:1' " +
"and @label='milk' " +
"and @automationClassName='FlexCheckBox']";
flexFT.checkbox(10, CheckBox).click(KeyModifier.None);
Creates a Flex ColorPicker element.
The flexFT.colorPicker method has the following command format(s):
flexFT.colorPicker(path);
flexFT.colorPicker(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on a Flex ColorPicker element.
String ColorPicker="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/ColorPickerExample.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='ColorPickerExample' " +
"and @id='null']" +
"/flex:panel[@automationName='ColorPicker%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='null']" +
"/flex:colorPicker[@automationName='cp' " +
"and @automationClassName='FlexColorPicker' " +
"and @automationIndex='index:1' " +
"and @className='mx.controls.ColorPicker' " +
"and @id='cp']";
flexFT.colorPicker(10, ColorPicker).change("#00cc00");
Creates a Flex ColumnChart element.
The flexFT.columnChart method has the following command format(s):
flexFT.columnChart(path);
flexFT.columnChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex ColumnChart element.
String columnChart="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/Column_BarChartExample.swf' " + "and @label='' " + "and @className='Column_BarChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='ColumnChart%20and%20BarChart%20Controls%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:columnChart[@automationIndex='index:0' " + "and @automationClassName='FlexColumnChart' " + "and @automationName='column' " + "and @className='mx.charts.ColumnChart' " + "and @id='column']"; flexFT.columnChart(10, columnChart).click(KeyModifier.None); try{ Double result=flexFT.columnChart(15, columnChart).getColumnWidthRatio(); if (result !=0.65) { warn("getColumnWidthRatio returned " + result); } }catch(Exception exp) {warn("getColumnWidthRatio exception: " + exp.getMessage());} try{ Double result=flexFT.columnChart(20, columnChart).getMaxColumnWidth(); if (result !=null) { warn("getMaxColumnWidth returned " + result); } }catch(Exception exp) {warn("getMaxColumnWidth exception: " + exp.getMessage());}
Creates a Flex ColumnSeries element.
The flexFT.columnSeries method has the following command format(s):
flexFT.columnSeries(path);
flexFT.columnSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex ColumnSeries element.
String columnSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/Column_BarChartExample.swf' " + "and @label='' " + "and @className='Column_BarChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='ColumnChart%20and%20BarChart%20Controls%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:columnChart[@automationIndex='index:0' " + "and @automationClassName='FlexColumnChart' " + "and @automationName='column' " + "and @className='mx.charts.ColumnChart' " + "and @id='column']" + "/flex:columnSeries[@automationIndex='index:2' " + "and @automationClassName='FlexColumnSeries' " + "and @automationName='Country;Bronze' " + "and @className='mx.charts.series.ColumnSeries' " + "and @id='_Column_BarChartExample_ColumnSeries3']"; flexFT.columnSeries(10, columnSeries).clickSeries(0.0); try{ String result=flexFT.columnSeries(15, columnSeries).getXField(); if (!result.equals("Country")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.columnSeries(20, columnSeries).getYField(); if (!result.equals("Bronze")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex ComboBox element.
The flexFT.combobox method has the following command format(s):
flexFT.combobox(path);
flexFT.combobox(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on a Flex ComboBox element.
String ComboBox="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationName='controls/SimpleComboBox.swf' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:1' " + "and @label='' " + "and @className='SimpleComboBox' " + "and @id='null']" + "/flex:panel[@automationName='ComboBox%20Control%20Example' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:combobox[@automationName='_SimpleComboBox_ComboBox1' " + "and @automationClassName='FlexComboBox' " + "and @automationIndex='index:0' " + "and @className='mx.controls.ComboBox' " + "and @id='_SimpleComboBox_ComboBox1']"; flexFT.combobox(10, ComboBox).open(TriggerEvent.Mouse); { think(0.764); } flexFT.combobox(15, ComboBox).select("MasterCard", TriggerEvent.Mouse, KeyModifier.None); flexFT.combobox(20, ComboBox).input("zopa"); flexFT.combobox(25, ComboBox).type("Enter", KeyModifier.None); flexFT.combobox(30, ComboBox).storeCell("var", 1, 1); if (!eval("{{var}}").equals("Visa")){ warn("storeCell returned " + eval("{{var}}"));} { think(1.231); }
Creates a Flex DataGrid element.
The flexFT.dataGrid method has the following command format(s):
flexFT.dataGrid(path);
flexFT.dataGrid(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex DataGrid element.
String DataGrid="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/SimpleDataGrid.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='SimpleDataGrid' " +
"and @id='null']" +
"/flex:panel[@automationName='DataGrid%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='null']" +
"/flex:dataGrid[@automationName='dg' " +
"and @automationClassName='FlexDataGrid' " +
"and @automationIndex='index:1' " +
"and @className='mx.controls.DataGrid' " +
"and @id='dg']";
flexFT.dataGrid(10, DataGrid).select("*Chris* | 2270 | chris@example.com"
,TriggerEvent.Mouse, KeyModifier.None);
think(1);
try{
String result=flexFT.dataGrid(DataGrid).getCell(1, 1);
if (!result.equals("Chris")) {
warn("getCell returned " + result);
}
}catch(Exception exp) {warn("getCell exception: "
+ exp.getMessage());}
Creates a Flex DateChooser element.
The flexFT.dateChooser method has the following command format(s):
flexFT.dateChooser(path);
flexFT.dateChooser(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex DateChooser element.
String DateChooser="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @id='explorer' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:0' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @label='']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:1' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @label='']" + "/flex:panel[@automationName='swfLoader' " + "and @id='swfLoader' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:application[@automationName='controls/DateChooserExample.swf' " + "and @id='null' " + "and @className='DateChooserExample' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:panel[@automationName='DateChooser%20Control%20Example' " + "and @id='null' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:dateChooser[@automationName='dateChooser1' " + "and @id='dateChooser1' " + "and @className='mx.controls.DateChooser' " + "and @automationIndex='index:5' " + "and @automationClassName='FlexDateChooser']"; flexFT.dateChooser(10, DateChooser).scroll(DateChooserDetail.nextMonth); { think(1.0); } flexFT.dateChooser(15, DateChooser).change("2012-09-12");
Creates a Flex DateField element.
The flexFT.dateField method has the following command format(s):
flexFT.dateField(path);
flexFT.dateField(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex DateField element.
String dateField="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @id='explorer' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:0' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @label='']/flex:dividedBox[@id='null'" + " and @automationIndex='index:1' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @label='']" + "/flex:panel[@automationName='swfLoader' " + "and @id='swfLoader' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:application[@automationName='controls/DateFieldExample.swf' " + "and @id='null' " + "and @className='DateFieldExample' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:panel[@automationName='DateField%20Control%20Example' " + "and @id='null' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:dateField[@automationName='dateField1' " + "and @id='dateField1' " + "and @className='mx.controls.DateField' " + "and @automationIndex='index:2' " + "and @automationClassName='FlexDateField']"; flexFT.dateField(10, dateField).open(TriggerEvent.Mouse); { think(2.0); } flexFT.dateField(15, dateField).change("2010-09-12");
Creates a Flex DividedBox element.
The flexFT.dividedBox method has the following command format(s):
flexFT.dividedBox(path);
flexFT.dividedBox(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex dividedBox element.
String dividedBox="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']"; flexFT.dividedBox(10, dividedBox).released(0, 153.0); flexFT.dividedBox(15, dividedBox).dragged(0, 148.0); flexFT.dividedBox(20, dividedBox).pressed(0, 148.0);
Creates a Flex LineChart element.
The flexFT.lineChart method has the following command format(s):
flexFT.lineChart(path);
flexFT.lineChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex LineChart element.
String lineChart="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationIndex='index:-1' " +
"and @automationClassName='FlexApplication' " +
"and @automationName='explorer' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationName='index:0' " +
"and @automationIndex='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationName='index:1' " +
"and @automationIndex='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationIndex='index:0' " +
"and @automationClassName='FlexPanel' " +
"and @automationName='swfLoader' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationIndex='index:1' " +
"and @automationClassName='FlexApplication' " +
"and @automationName='charts/Line_AreaChartExample.swf' " +
"and @label='' " +
"and @className='Line_AreaChartExample' " +
"and @id='null']" +
"/flex:panel[@automationIndex='index:0' " +
"and @automationClassName='FlexPanel' " +
"and @automationName='LineChart%20and%20AreaChart%20Controls%20Example' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='null']" +
"/flex:lineChart[@automationIndex='index:0' " +
"and @automationClassName='FlexLineChart' " +
"and @automationName='linechart' " +
"and @className='mx.charts.LineChart' " +
"and @id='linechart']";
flexFT.lineChart(10, lineChart).click(KeyModifier.None);
Creates a Flex LineSeries element.
The flexFT.lineSeries method has the following command format(s):
flexFT.lineSeries(path);
flexFT.lineSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex LineSeries element.
String lineSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationName='charts/Line_AreaChartExample.swf' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:1' " + "and @label='' " + "and @className='Line_AreaChartExample' " + "and @id='null']" + "/flex:panel[@automationName='LineChart%20and%20AreaChart%20Controls%20Example' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:lineChart[@automationName='linechart' " + "and @automationClassName='FlexLineChart' " + "and @automationIndex='index:0' " + "and @className='mx.charts.LineChart' " + "and @id='linechart']" + "/flex:lineSeries[@automationName='Profit' " + "and @automationClassName='FlexLineSeries' " + "and @automationIndex='index:0' " + "and @className='mx.charts.series.LineSeries' " + "and @id='_Line_AreaChartExample_LineSeries1']"; flexFT.lineSeries(10, lineSeries).clickSeries(1.0); try{ String result=flexFT.lineSeries(15, lineSeries).getXField(); if (!result.equals("")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.lineSeries(20, lineSeries).getYField(); if (!result.equals("Profit")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex LinkBar element.
The flexFT.linkBar method has the following command format(s):
flexFT.linkBar(path);
flexFT.linkBar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex linkBar element.
String LinkBar="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @id='explorer' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:0' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @label='']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:1' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @label='']" + "/flex:panel[@automationName='swfLoader' " + "and @id='swfLoader' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:application[@automationName='controls/LinkBarExample.swf' " + "and @id='null' " + "and @className='LinkBarExample' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:panel[@automationName='LinkBar%20Control%20Example' " + "and @id='null' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:linkBar[@automationName='_LinkBarExample_LinkBar1' " + "and @id='_LinkBarExample_LinkBar1' " + "and @className='mx.controls.LinkBar' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexLinkBar']"; flexFT.linkBar(10, LinkBar).change("Customer Info"); try{ Integer result=flexFT.linkBar(15, LinkBar).getSelectedIndex(); if (result !=1) { warn("getSelectedIndex returned " + result); } }catch(Exception exp) {warn("getSelectedIndex exception: " + exp.getMessage());}
Creates a Flex List element.
The flexFT.list method has the following command format(s):
flexFT.list(path);
flexFT.list(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex List element.
String List="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/HorizontalListExample.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='HorizontalListExample' " +
"and @id='null']" +
"/flex:panel[@automationName='HorizontalList%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='null']" +
"/flex:list[@automationName='CameraSelection' " +
"and @automationClassName='FlexList' " +
"and @automationIndex='index:1' " +
"and @className='mx.controls.HorizontalList' " +
"and @id='CameraSelection']";
try{
String result=flexFT.list(10, List).getCell(1, 1);
if (!result.equals("Nokia 6630")) {
warn("getCell returned " + result);
}
}catch(Exception exp) {warn("getCell exception: "+ exp.getMessage());}
Creates a Flex Menu element.
The flexFT.menu method has the following command format(s):
flexFT.menu(path);
flexFT.menu(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Menu element.
String menu="/web:window[@index='0' " +
"or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationClassName='FlexApplication' " +
"and @className='explorer' " +
"and @label='' " +
"and @automationIndex='index:-1' " +
"and @automationName='explorer' " +
"and @id='explorer']" +
"/flex:menu[@automationClassName='FlexMenu' " +
"and @className='mx.controls.Menu' " +
"and @automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null']";
flexFT.menu(menu).select(10, "MenuItem 1");
Creates a Flex MenuBar element.
The flexFT.menubar method has the following command format(s):
flexFT.menubar(path);
flexFT.menubar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex MenuBar element.
String menubar="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='explorer' " + "and @label='' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @automationName='index:0']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @automationName='index:1']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='loaderPanel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @id='swfLoader']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='MenuBarExample' " + "and @label='' " + "and @automationIndex='index:1' " + "and @automationName='controls/MenuBarExample.swf' " + "and @id='null']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='mx.containers.Panel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='MenuBar%20Control%20Example' " + "and @id='null']" + "/flex:menubar[@automationClassName='FlexMenuBar' " + "and @className='mx.controls.MenuBar' " + "and @automationIndex='index:1' " + "and @automationName='_MenuBarExample_MenuBar1' " + "and @id='_MenuBarExample_MenuBar1']"; flexFT.menubar(10, menubar).show("Menu1"); try{ Double result=flexFT.menubar(15, menubar).getSelectedIndex(); if (result !=0) { warn("getSelectedIndex returned " + result); } }catch(Exception exp) {warn("getSelectedIndex exception: " + exp.getMessage());} flexFT.menubar(20, menubar).hide();
Creates a Flex NumericStepper element.
The flexFT.numericStepper method has the following command format(s):
flexFT.numericStepper(path);
flexFT.numericStepper(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex numericStepper element.
String numericStepper="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationName='controls/NumericStepperExample.swf' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:1' " + "and @label='' " + "and @className='NumericStepperExample' " + "and @id='null']" + "/flex:panel[@automationName='NumericStepper%20Control%20Example' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:numericStepper[@automationName='index:1' " + "and @automationClassName='FlexNumericStepper' " + "and @automationIndex='index:1' " + "and @className='mx.controls.NumericStepper' " + "and @id='null']"; flexFT.numericStepper(10, numericStepper).change(1.0); think(2.0); flexFT.numericStepper(15, numericStepper).selectText(0, 1);
Creates a Flex Panel element.
The flexFT.panel method has the following command format(s):
flexFT.panel(path);
flexFT.panel(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Panel element.
String Panel="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/SimpleHRule.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='SimpleHRule' " +
"and @id='null']" +
"/flex:panel[@automationName='HRule%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='myPanel']";
try{
String result=flexFT.panel(10, Panel).getTitle();
if (!result.equals("HRule Control Example")) {
warn("getTitle returned " + result);
}
}catch(Exception exp) {warn("getTitle exception: "+ exp.getMessage());}
Creates a Flex PieChart element.
The flexFT.pieChart method has the following command format(s):
flexFT.pieChart(path);
flexFT.pieChart(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex PieChart element.
String pieChart="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/PieChartExample.swf' " + "and @label='' " + "and @className='PieChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='Olympics%202004%20Medals%20Tally%20Panel' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']/flex:pieChart[@automationIndex='index:0' " + "and @automationClassName='FlexPieChart' " + "and @automationName='chart' " + "and @className='mx.charts.PieChart' " + "and @id='chart']"; flexFT.pieChart(10, pieChart).click(KeyModifier.None); try{ Double result=flexFT.pieChart(15, pieChart).getInnerRadius(); if (result !=0) { warn("getInnerRadius returned " + result); } }catch(Exception exp) {warn("getInnerRadius exception: " + exp.getMessage());}
Creates a Flex PieSeries element.
The flexFT.pieSeries method has the following command format(s):
flexFT.pieSeries(path);
flexFT.pieSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex PieSeries element.
String pieSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/PieChartExample.swf' " + "and @label='' " + "and @className='PieChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='Olympics%202004%20Medals%20Tally%20Panel' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:pieChart[@automationIndex='index:0' " + "and @automationClassName='FlexPieChart' " + "and @automationName='chart' " + "and @className='mx.charts.PieChart' " + "and @id='chart']" + "/flex:pieSeries[@automationIndex='index:0' " + "and @automationClassName='FlexPieSeries' " + "and @automationName='_PieChartExample_PieSeries1' " + "and @className='mx.charts.series.PieSeries' " + "and @id='_PieChartExample_PieSeries1']"; flexFT.pieSeries(10, pieSeries).clickSeries(1.0); try{ String result=flexFT.pieSeries(15, pieSeries).getField() ; if (!result.equals("Gold")) { warn("getField returned " + result); } }catch(Exception exp) {warn("getField exception: " + exp.getMessage());}
Creates a Flex PlotSeries element.
The flexFT.plotSeries method has the following command format(s):
flexFT.plotSeries(path);
flexFT.plotSeries(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex PlotSeries element.
String plotSeries="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationIndex='index:-1' " + "and @automationClassName='FlexApplication' " + "and @automationName='explorer' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationName='index:0' " + "and @automationIndex='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationName='index:1' " + "and @automationIndex='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='swfLoader' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationIndex='index:1' " + "and @automationClassName='FlexApplication' " + "and @automationName='charts/PlotChartExample.swf' " + "and @label='' " + "and @className='PlotChartExample' " + "and @id='null']" + "/flex:panel[@automationIndex='index:0' " + "and @automationClassName='FlexPanel' " + "and @automationName='PlotChart%20Control%20Example' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='null']" + "/flex:cartesianChart[@automationIndex='index:0' " + "and @automationClassName='FlexCartesianChart' " + "and @automationName='plot' " + "and @className='mx.charts.PlotChart' " + "and @id='plot']" + "/flex:plotSeries[@automationIndex='index:0' " + "and @automationClassName='FlexPlotSeries' " + "and @automationName='Expenses;Profit' " + "and @className='mx.charts.series.PlotSeries' " + "and @id='_PlotChartExample_PlotSeries1']"; flexFT.plotSeries(10, plotSeries).clickSeries(1.0); try{ String result=flexFT.plotSeries(15, plotSeries).getXField() ; if (!result.equals("Expenses")) { warn("getXField returned " + result); } }catch(Exception exp) {warn("getXField exception: " + exp.getMessage());} try{ String result=flexFT.plotSeries(20, plotSeries).getYField() ; if (!result.equals("Profit")) { warn("getYField returned " + result); } }catch(Exception exp) {warn("getYField exception: " + exp.getMessage());}
Creates a Flex PopUpButton element.
The flexFT.popupButton method has the following command format(s):
flexFT.popupButton(path);
flexFT.popupButton(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex PopupButton element.
String popupButton="/web:window[@index='0' " + "or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='explorer' " + "and @label='' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @automationName='index:0']" + "/flex:dividedBox[@automationClassName='FlexDividedBox' " + "and @label='' " + "and @id='null' " + "and @automationIndex='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @automationName='index:1']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='loaderPanel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @id='swfLoader']" + "/flex:application[@automationClassName='FlexApplication' " + "and @className='PopUpButtonExample' " + "and @label='' " + "and @automationIndex='index:1' " + "and @automationName='controls/PopUpButtonExample.swf' " + "and @id='null']" + "/flex:panel[@automationClassName='FlexPanel' " + "and @className='mx.containers.Panel' " + "and @label='' " + "and @automationIndex='index:0' " + "and @automationName='PopUpButton%20Control%20Example' " + "and @id='null']" + "/flex:popupButton[@automationClassName='FlexPopUpButton' " + "and @className='mx.controls.PopUpButton' " + "and @label='Put%20in:%20New%20Folder' " + "and @automationIndex='index:1' " + "and @automationName='popB' and @id='popB']"; flexFT.popupButton(10, popupButton).open(TriggerEvent.Mouse); { think(1.328); } flexFT.popupButton(15, popupButton).close(TriggerEvent.Mouse);
Creates a Flex ProgressBar element.
The flexFT.progressBar method has the following command format(s):
flexFT.progressBar(path);
flexFT.progressBar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex progressBar element.
String ProgressBar="/web:window[@index='0']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @label='' " +
"and @className='explorer' " +
"and @automationIndex='index:-1' " +
"and @id='explorer']" +
"/flex:dividedBox[@label='' " +
"and @automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @automationClassName='FlexDividedBox' " +
"and @className='mx.containers.HDividedBox' " +
"and @id='null']" +
"/flex:dividedBox[@label='' " +
"and @automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @automationClassName='FlexDividedBox' " +
"and @className='mx.containers.VDividedBox' " +
"and @id='null']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @automationIndex='index:0' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/SimpleProgressBar.swf' " +
"and @automationClassName='FlexApplication' " +
"and @label='' " +
"and @className='SimpleProgressBar' " +
"and @automationIndex='index:1' " +
"and @id='null']" +
"/flex:panel[@automationName='ProgressBar%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @automationIndex='index:0' " +
"and @id='null']" +
"/flex:progressBar[@automationName='CurrentProgress%200%25' " +
"and @automationClassName='FlexProgressBar' " +
"and @label='CurrentProgress%200%25' " +
"and @className='mx.controls.ProgressBar' " +
"and @automationIndex='index:2' " +
"and @id='bar']";
try{
Double result=flexFT.progressBar(10, ProgressBar).getPercentComplete();
if (result !=0) {
warn("getPercentComplete returned " + result);
}
}catch(Exception exp) {warn("getPercentComplete exception: "
+ exp.getMessage());}
Creates a Flex RadioButton element.
The flexFT.radioButton method has the following command format(s):
flexFT.radioButton(path);
flexFT.radioButton(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex RadioButton element.
String RadioButton="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @id='explorer' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:0' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:0' " + "and @className='mx.containers.HDividedBox' " + "and @label='']" + "/flex:dividedBox[@id='null' " + "and @automationIndex='index:1' " + "and @automationClassName='FlexDividedBox' " + "and @automationName='index:1' " + "and @className='mx.containers.VDividedBox' " + "and @label='']" + "/flex:panel[@automationName='swfLoader' " + "and @id='swfLoader' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:application[@automationName='controls/RadioButtonExample.swf' " + "and @id='null' " + "and @className='RadioButtonExample' " + "and @automationIndex='index:1' " + "and @label='' " + "and @automationClassName='FlexApplication']" + "/flex:panel[@automationName='RadioButton%20Control%20Example' " + "and @id='null' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @automationClassName='FlexPanel']" + "/flex:radioButton[@automationName='1952' " + "and @id='option2' " + "and @className='mx.controls.RadioButton' " + "and @automationIndex='index:2' " + "and @label='1952' " + "and @automationClassName='FlexRadioButton']"; flexFT.radioButton(RadioButton).click(KeyModifier.None); try{ String result=flexFT.radioButton(RadioButton).getGroupName(); if (!result.equals("year")) { warn("getGroupName returned " + result); } }catch(Exception exp) {warn("getSGroupName exception: " + exp.getMessage());}
Creates a Flex ScrollBar element.
The flexFT.scrollbar method has the following command format(s):
flexFT.scrollbar(path);
flexFT.scrollbar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Scrollbar element.
String scrollBar="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @className='explorer' " +
"and @id='explorer']" +
"/flex:dividedBox[@automationIndex='index:0' " +
"and @automationName='index:0' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.HDividedBox']" +
"/flex:dividedBox[@automationIndex='index:1' " +
"and @automationName='index:1' " +
"and @id='null' " +
"and @automationClassName='FlexDividedBox' " +
"and @label='' " +
"and @className='mx.containers.VDividedBox']" +
"/flex:panel[@automationName='swfLoader' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='loaderPanel' " +
"and @id='swfLoader']" +
"/flex:application[@automationName='controls/HScrollBarExample.swf' " +
"and @automationClassName='FlexApplication' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @className='HScrollBarExample' " +
"and @id='null']" +
"/flex:panel[@automationName='HScrollBar%20Control%20Example' " +
"and @automationClassName='FlexPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @className='mx.containers.Panel' " +
"and @id='panel']" +
"/flex:scrollbar[@automationName='bar' " +
"and @automationClassName='FlexScrollBar' " +
"and @automationIndex='index:1' " +
"and @className='mx.controls.HScrollBar' " +
"and @id='bar']";
flexFT.scrollbar(10, scrollBar).scroll(100,
ScrollDirection.horizontal,
ScrollDetail.pageRight);
Creates a Flex Slider element.
The flexFT.slider method has the following command format(s):
flexFT.slider(path);
flexFT.slider(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex Slider element.
String Slider="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:-1' " + "and @label='' " + "and @className='explorer' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.HDividedBox']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @id='null' " + "and @automationClassName='FlexDividedBox' " + "and @label='' " + "and @className='mx.containers.VDividedBox']" + "/flex:panel[@automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='loaderPanel' " + "and @id='swfLoader']" + "/flex:application[@automationName='controls/SimpleImageHSlider.swf' " + "and @automationClassName='FlexApplication' " + "and @automationIndex='index:1' " + "and @label='' " + "and @className='SimpleImageHSlider' " + "and @id='null']" + "/flex:panel[@automationName='HSlider%20Control%20Example' " + "and @automationClassName='FlexPanel' " + "and @automationIndex='index:0' " + "and @label='' " + "and @className='mx.containers.Panel' " + "and @id='panel']" + "/flex:slider[@automationName='hSlider' " + "and @automationClassName='FlexSlider' " + "and @automationIndex='index:3' " + "and @direction='horizontal' " + "and @className='mx.controls.HSlider' " + "and @id='hSlider']"; flexFT.slider(10, Slider).change(54.0, 0, "track", TriggerEvent.Mouse, ""); flexFT.slider(15, Slider).change(52.0, 0, "thumb", TriggerEvent.Mouse, "");
Creates a Flex ToggleButtonBar element.
The flexFT.toggleButtonBar method has the following command format(s):
flexFT.toggleButtonBar(path);
flexFT.toggleButtonBar(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex toggleButtonBar element.
flexFT.toggleButtonBar(19, "/web:window[@index='0' " +
"or @title='Adobe Flex 3 Component Explorer" +
"/web:document[@index='0']" +
"/flex:application[@automationName='explorer' " +
"and @id='explorer' " +
"and @className='explorer' " +
"and @automationIndex='index:-1' " +
"and @label='' " +
"and @automationClassName='FlexApplication']" +
"/flex:dividedBox[@id='null' " +
"and @automationIndex='index:0' " +
"and @automationClassName='FlexDividedBox' " +
"and @automationName='index:0' " +
"and @className='mx.containers.HDividedBox' " +
"and @label='']" +
"/flex:dividedBox[@id='null' " +
"and @automationIndex='index:1' " +
"and @automationClassName='FlexDividedBox' " +
"and @automationName='index:1' " +
"and @className='mx.containers.VDividedBox' " +
"and @label='']" +
"/flex:panel[@automationName='swfLoader' " +
"and @id='swfLoader' " +
"and @className='loaderPanel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @automationClassName='FlexPanel']" +
"/flex:application[@automationName='controls/ToggleButtonBarExample.swf' " +
"and @id='null' " +
"and @className='ToggleButtonBarExample' " +
"and @automationIndex='index:1' " +
"and @label='' " +
"and @automationClassName='FlexApplication']" +
"/flex:panel[@automationName='ToggleButtonBar%20Control%20Example' " +
"and @id='null' and @className='mx.containers.Panel' " +
"and @automationIndex='index:0' " +
"and @label='' " +
"and @automationClassName='FlexPanel']" +
"/flex:toggleButtonBar[@id='null' " +
"and @automationIndex='index:2' " +
"and @automationClassName='FlexToggleButtonBar' " +
"and @automationName='index:2' " +
"and @className='mx.controls.ToggleButtonBar' " +
"and @label='']").change("Director");
Creates a Flex Tree element.
The flexFT.tree method has the following command format(s):
flexFT.tree(path);
flexFT.tree(recid, path);
a String specifying the path of the element.
the ID of a previously recorded navigation, used for comparison purposes.
Performs an action on Flex progressBar element.
flexFT.tree(5, "/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@label='' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @label='' " + "and @automationClassName='FlexDividedBox' " + "and @className='mx.containers.HDividedBox' " + "and @id='null']" + "/flex:panel[@label='' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @automationName='Adobe%20Flex%203%20Component%20Explorer' " + "and @automationClassName='FlexPanel' " + "and @id='null']" + "/flex:tree[@className='mx.controls.Tree' " + "and @automationIndex='index:0' " + "and @automationName='compLibTree' " + "and @automationClassName='FlexTree' " + "and @id='compLibTree']") .select("Visual Components>General Controls>Tree", TriggerEvent.Mouse, KeyModifier.None); String Tree="/web:window[@index='0' or @title='Adobe Flex 3 Component Explorer']" + "/web:document[@index='0']" + "/flex:application[@label='' " + "and @className='explorer' " + "and @automationIndex='index:-1' " + "and @automationName='explorer' " + "and @automationClassName='FlexApplication' " + "and @id='explorer']" + "/flex:dividedBox[@automationIndex='index:0' " + "and @automationName='index:0' " + "and @label='' " + "and @automationClassName='FlexDividedBox' " + "and @className='mx.containers.HDividedBox' " + "and @id='null']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @label='' " + "and @automationClassName='FlexDividedBox' " + "and @className='mx.containers.VDividedBox' " + "and @id='null']" + "/flex:panel[@label='' " + "and @className='loaderPanel' " + "and @automationIndex='index:0' " + "and @automationName='swfLoader' " + "and @automationClassName='FlexPanel' " + "and @id='swfLoader']" + "/flex:application[@label='' " + "and @className='TreeExample' " + "and @automationIndex='index:1' " + "and @automationName='controls/TreeExample.swf' " + "and @automationClassName='FlexApplication' " + "and @id='null']" + "/flex:panel[@label='' " + "and @className='mx.containers.Panel' " + "and @automationIndex='index:0' " + "and @automationName='Tree%20Control%20Example' " + "and @automationClassName='FlexPanel' " + "and @id='null']" + "/flex:dividedBox[@automationIndex='index:1' " + "and @automationName='index:1' " + "and @label='' " + "and @automationClassName='FlexDividedBox' " + "and @className='mx.containers.HDividedBox' " + "and @id='null']" + "/flex:tree[@className='mx.controls.Tree' " + "and @automationIndex='index:0' " + "and @automationName='myTree' " + "and @automationClassName='FlexTree' " + "and @id='myTree']"; { think(2.0); } flexFT.tree(10, Tree).open("Inbox", TriggerEvent.Mouse); { think(1.5); } flexFT.tree(15, Tree).select("Inbox>Marketing", TriggerEvent.Mouse, KeyModifier.None);