Chart

These are the actions associated with the Chart step type.

Description

Returns the chart type from a displayed chart.

Parameters

Field or Control

Definition

chart=value;

The index for the chart image on the page.

ret=&variable;

The return value.

Description

Returns the text value for the specified chart section.

Parameters

Field or Control

Definition

chart=value;

The index for the chart image on the page.

idx=value; url=value; alt=value;

The section recognition string. It can be the section index, the section URL, or the alternative text.

ret=&variable;

The return value.

Example

This is an example of the GetText action for a Chart step type:

Type

Action

Recognition

Parameters

Value

Chart

GetText

chart=0

idx=3;ret=&chart_val

Log

Message

The value for index 3 is &chart_val

Chart

GetText

chart=0

idx=2;ret=&chart

Log

Message

The value for index 2 is &chart_val

Description

Counts the number of regions in a chart.

Parameters

Field or Control

Definition

chart=value

The index for the chart image on the page.

ret=&variable

The variable to store the return value.

The Chart.SectionCount returns the real value (not zero-based). If you are using this variable in combination with zero-based indexes, such as a For loop, you may need to subtract 1.

Example

This example illustrates using the SectionCount action with a loop to retrieve the text for each section.

Type

Action

Recognition

Parameters

Value

Browser

Start_Login

Browser

FrameSet

TargetContent

Page

Prompt

QE_CHART_MENU.QE_CHART2.GBL

urltype=default

update

Text

Set_Value

Name=QE_CHART_RECORD_QE_CHART_CATEGORY

CAR SALES

Page

PromptOk

Chart

SectionCount

chart=0

ret=&chart_count

Log

Message

ChartCount => &chart_count

Loop

For

&var=0 to Subtract(&chart_count|1)

Chart

GetText

chart=0

idx=&var;ret=&chart_value

Log

Message

ChartValue => &chart_value

Loop

Next