Skip to Main Content
Return to Navigation

Chart

These are the actions associated with the Chart step type.

ChartClick

Description

Performs a click in a chart section.

Parameters

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.

GetChartType

Description

Returns the chart type chart type from a displayed chart on the PIA page.

Parameters

chart=value;

The index for the chart image on the page.

ret=&variable;

The return value.

GetText

Description

Returns the text value for the specified chart section.

Parameters

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:

Image: Example of GetText action for a Chart step type

This example illustrates the GetText action for a Chart step type.

Example of GetText action for a Chart step type

SectionCount

Description

Counts the number of regions in a chart.

Parameters

chart=value

The index for the chart image on the page.

ret=&variable

The return value.

The Chart.SectionCount returns the real value (not zero-based). If you are using this variable in a For Loop, you will need to subtract 1.

Example

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

Image: Example of SectionCount Action for a Chart Step Type

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

Example of SectionCount Action for a Chart Step type