10 Adobe Flex Functional Module

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

10.1 FlexFTService API Reference

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

10.1.1 Alphabetical Command Listing

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

Table 10-1 List of FlexFTService Methods

Method Description

flexFT.accordion

Creates a Flex Accordion element.

flexFT.alert

Creates a Flex Alert element.

flexFT.application

Creates a Flex Application element.

flexFT.areaChart

Creates a Flex AreaChart element.

flexFT.areaSeries

Creates a Flex AreaSeries element.

flexFT.barChart

Creates a Flex BarChart element.

flexFT.barSeries

Creates a Flex BarSeries element.

flexFT.box

Creates a Flex Box element.

flexFT.bubbleSeries

Creates a Flex BubbleSeries element.

flexFT.button

Creates a Flex Button element.

flexFT.buttonBar

Creates a Flex ButtonBar element.

flexFT.cartesianChart

Creates a Flex CartesianChart element.

flexFT.checkbox

Creates a Flex CheckBox element.

flexFT.colorPicker

Creates a Flex ColorPicker element.

flexFT.columnChart

Creates a Flex ColumnChart element.

flexFT.columnSeries

Creates a Flex ColumnSeries element.

flexFT.combobox

Creates a Flex ComboBox element.

flexFT.dataGrid

Creates a Flex DataGrid element.

flexFT.dateChooser

Creates a Flex DateChooser element.

flexFT.dateField

Creates a Flex DateField element.

flexFT.dividedBox

Creates a Flex DividedBox element.

flexFT.lineChart

Creates a Flex LineChart element.

flexFT.lineSeries

Creates a Flex LineSeries element.

flexFT.linkBar

Creates a Flex LinkBar element.

flexFT.list

Creates a Flex List element.

flexFT.menu

Creates a Flex Menu element.

flexFT.menubar

Creates a Flex MenuBar element.

flexFT.numericStepper

Creates a Flex NumericStepper element.

flexFT.panel

Creates a Flex Panel element.

flexFT.pieChart

Creates a Flex PieChart element.

flexFT.pieSeries

Creates a Flex PieSeries element.

flexFT.plotSeries

Creates a Flex PlotSeries element.

flexFT.popupButton

Creates a Flex PopUpButton element.

flexFT.progressBar

Creates a Flex ProgressBar element.

flexFT.radioButton

Creates a Flex RadioButton element.

flexFT.scrollbar

Creates a Flex ScrollBar element.

flexFT.slider

Creates a Flex Slider element.

flexFT.toggleButtonBar

Creates a Flex ToggleButtonBar element.

flexFT.tree

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.


flexFT.accordion

Creates a Flex Accordion element.

Format

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

flexFT.accordion(path);

flexFT.accordion(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Accordion.

Example

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());}

flexFT.alert

Creates a Flex Alert element.

Format

The flexFT.alert method has the following command format(s):

flexFT.alert(path);

flexFT.alert(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Alert.

Example

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());}

flexFT.application

Creates a Flex Application element.

Format

The flexFT.application method has the following command format(s):

flexFT.application(path);

flexFT.application(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Application.

Example

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());}

flexFT.areaChart

Creates a Flex AreaChart element.

Format

The flexFT.areaChart method has the following command format(s):

flexFT.areaChart(path);

flexFT.areaChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new AreaChart.

Example

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());}

flexFT.areaSeries

Creates a Flex AreaSeries element.

Format

The flexFT.areaSeries method has the following command format(s):

flexFT.areaSeries(path);

flexFT.areaSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new AreaSeries.

Example

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());}

flexFT.barChart

Creates a Flex BarChart element.

Format

The flexFT.barChart method has the following command format(s):

flexFT.barChart(path);

flexFT.barChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new BarChart.

Example

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());}

flexFT.barSeries

Creates a Flex BarSeries element.

Format

The flexFT.barSeries method has the following command format(s):

flexFT.barSeries(path);

flexFT.barSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new BarSeries.

Example

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());}

flexFT.box

Creates a Flex Box element.

Format

The flexFT.box method has the following command format(s):

flexFT.box(path);

flexFT.box(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Box.

Example

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());}

flexFT.bubbleSeries

Creates a Flex BubbleSeries element.

Format

The flexFT.bubbleSeries method has the following command format(s):

flexFT.bubbleSeries(path);

flexFT.bubbleSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new BubbleSeries.

Example

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());}

flexFT.button

Creates a Flex Button element.

Format

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

flexFT.button(path);

flexFT.button(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Button

Example

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);    

flexFT.buttonBar

Creates a Flex ButtonBar element.

Format

The flexFT.buttonBar method has the following command format(s):

flexFT.buttonBar(path);

flexFT.buttonBar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ButtonBar.

Example

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);

flexFT.cartesianChart

Creates a Flex CartesianChart element.

Format

The flexFT.cartesianChart method has the following command format(s):

flexFT.cartesianChart(path);

flexFT.cartesianChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new CartesianChart.

Example

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());}

flexFT.checkbox

Creates a Flex CheckBox element.

Format

The flexFT.checkbox method has the following command format(s):

flexFT.checkbox(path);

flexFT.checkbox(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new CheckBox.

Example

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);

flexFT.colorPicker

Creates a Flex ColorPicker element.

Format

The flexFT.colorPicker method has the following command format(s):

flexFT.colorPicker(path);

flexFT.colorPicker(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ColorPicker

Example

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"); 

flexFT.columnChart

Creates a Flex ColumnChart element.

Format

The flexFT.columnChart method has the following command format(s):

flexFT.columnChart(path);

flexFT.columnChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ColumnChart.

Example

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());}

flexFT.columnSeries

Creates a Flex ColumnSeries element.

Format

The flexFT.columnSeries method has the following command format(s):

flexFT.columnSeries(path);

flexFT.columnSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ColumnSeries.

Example

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());}

flexFT.combobox

Creates a Flex ComboBox element.

Format

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

flexFT.combobox(path);

flexFT.combobox(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ComboBox.

Example

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);
}        

flexFT.dataGrid

Creates a Flex DataGrid element.

Format

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

flexFT.dataGrid(path);

flexFT.dataGrid(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new DataGrid.

Example

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());}     

flexFT.dateChooser

Creates a Flex DateChooser element.

Format

The flexFT.dateChooser method has the following command format(s):

flexFT.dateChooser(path);

flexFT.dateChooser(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new DateChooser.

Example

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");

flexFT.dateField

Creates a Flex DateField element.

Format

The flexFT.dateField method has the following command format(s):

flexFT.dateField(path);

flexFT.dateField(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new DateField.

Example

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");

flexFT.dividedBox

Creates a Flex DividedBox element.

Format

The flexFT.dividedBox method has the following command format(s):

flexFT.dividedBox(path);

flexFT.dividedBox(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new DividedBox.

Example

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);

flexFT.lineChart

Creates a Flex LineChart element.

Format

The flexFT.lineChart method has the following command format(s):

flexFT.lineChart(path);

flexFT.lineChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new LineChart.

Example

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);

flexFT.lineSeries

Creates a Flex LineSeries element.

Format

The flexFT.lineSeries method has the following command format(s):

flexFT.lineSeries(path);

flexFT.lineSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new LineSeries.

Example

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());}

flexFT.linkBar

Creates a Flex LinkBar element.

Format

The flexFT.linkBar method has the following command format(s):

flexFT.linkBar(path);

flexFT.linkBar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new LinkBar.

Example

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());}

flexFT.list

Creates a Flex List element.

Format

The flexFT.list method has the following command format(s):

flexFT.list(path);

flexFT.list(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new List

Example

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());}

flexFT.menu

Creates a Flex Menu element.

Format

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

flexFT.menu(path);

flexFT.menu(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Menu.

Example

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");

flexFT.menubar

Creates a Flex MenuBar element.

Format

The flexFT.menubar method has the following command format(s):

flexFT.menubar(path);

flexFT.menubar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new MenuBar.

Example

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();

flexFT.numericStepper

Creates a Flex NumericStepper element.

Format

The flexFT.numericStepper method has the following command format(s):

flexFT.numericStepper(path);

flexFT.numericStepper(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new NumericStepper.

Example

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);

flexFT.panel

Creates a Flex Panel element.

Format

The flexFT.panel method has the following command format(s):

flexFT.panel(path);

flexFT.panel(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Panel

Example

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());}

flexFT.pieChart

Creates a Flex PieChart element.

Format

The flexFT.pieChart method has the following command format(s):

flexFT.pieChart(path);

flexFT.pieChart(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new PieChart.

Example

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());}

flexFT.pieSeries

Creates a Flex PieSeries element.

Format

The flexFT.pieSeries method has the following command format(s):

flexFT.pieSeries(path);

flexFT.pieSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new PieSeries.

Example

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());}

flexFT.plotSeries

Creates a Flex PlotSeries element.

Format

The flexFT.plotSeries method has the following command format(s):

flexFT.plotSeries(path);

flexFT.plotSeries(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new PlotSeries.

Example

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());}

flexFT.popupButton

Creates a Flex PopUpButton element.

Format

The flexFT.popupButton method has the following command format(s):

flexFT.popupButton(path);

flexFT.popupButton(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new PopUpButton.

Example

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);        

flexFT.progressBar

Creates a Flex ProgressBar element.

Format

The flexFT.progressBar method has the following command format(s):

flexFT.progressBar(path);

flexFT.progressBar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ProgressBar.

Example

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());}

flexFT.radioButton

Creates a Flex RadioButton element.

Format

The flexFT.radioButton method has the following command format(s):

flexFT.radioButton(path);

flexFT.radioButton(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new RadioButton.

Example

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());}

flexFT.scrollbar

Creates a Flex ScrollBar element.

Format

The flexFT.scrollbar method has the following command format(s):

flexFT.scrollbar(path);

flexFT.scrollbar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ScrollBar.

Example

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);

flexFT.slider

Creates a Flex Slider element.

Format

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

flexFT.slider(path);

flexFT.slider(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Slider.

Example

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, "");

flexFT.toggleButtonBar

Creates a Flex ToggleButtonBar element.

Format

The flexFT.toggleButtonBar method has the following command format(s):

flexFT.toggleButtonBar(path);

flexFT.toggleButtonBar(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new ToggleButtonBar.

Example

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");

flexFT.tree

Creates a Flex Tree element.

Format

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

flexFT.tree(path);

flexFT.tree(recid, path);

Command Parameters

path

a String specifying the path of the element.

recid

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

Returns

new Tree.

Example

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);