<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="DownloadFileActionGroup">
        <annotations>
            <description>Downloads the provided fileName on the Exports grid page.</description>
        </annotations>
        <arguments>
            <argument name="fileName" type="string"/>
        </arguments>

        <reloadPage stepKey="refreshPage"/>
        <waitForPageLoad stepKey="waitFormReload"/>
        <click stepKey="clickSelectBtn" selector="{{AdminExportAttributeSection.selectByFileName(fileName)}}"/>
        <click stepKey="clickOnDownload" selector="{{AdminExportAttributeSection.downloadByFileName(fileName)}}" after="clickSelectBtn"/>
    </actionGroup>
</actionGroups>
