NAME
Kernel::Test::Role::Selenium::Agent::HandlesStatisticFunctionalities – Role to interact with statistics functionalities in Selenium tests.
OpenStatisticRunFlyout()
Opens the run fly-out for the given statistic.
$Self->OpenStatisticRunFlyout(
StatisticNumber => 10035, # required
ParentSelector => '', # optional, e.g. the widget which shows a list of statistics + provides "Run" button
);
SubmitRunStatistic()
Clicks the run
$Self->SubmitRunStatistic(
Expand => 1, # optional, 0 or 1, default 0 - if a graph format is selected, flyout will expand to show the graph
);
GetPreviewChart()
Checks if the chart in the preview panel is shown.
$Self->GetPreviewChart(
Type => '', # required, possible values: Bar, Line, StackedArea
);
Returns the web element for the preview chart.
SelectGraphDownloadFormatAndSubmit()
Selects
$Self->SelectGraphDownloadFormatAndSubmit(
Format => '', # required, possible values: SVG, PNG
)