<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
 * @package Common Tests for Magento 2 (System)
 */-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">

    <section name="AdminRuleGridActionSection">
        <element name="AddNewRuleButton" type="button" selector="#add" timeout="30"/>
        <element name="ResetFilter" type="button" selector="//button[@data-action='grid-filter-reset']" timeout="30"/>
        <element name="FilterByNameInput" type="input" selector="input[name='name']"/>
        <element name="SearchButton" type="button" selector="#promo_quote_grid button[title='Search']" timeout="30"/>
        <element name="TableRowOne" type="text" selector="tr[data-role='row']:nth-of-type(1)" timeout="30"/>

        <!-- Choose MassAction-->
        <element name="MassActionSelect" type="button" selector="//select[@id='promo_quote_grid_massaction-mass-select']"/>
        <element name="MassActionSelectAll" type="select" selector="//select[@id='promo_quote_grid_massaction-mass-select']//option[@value='selectAll']"/>
        <element name="MassActionUnselectAll" type="select" selector="//select[@id='promo_quote_grid_massaction-mass-select']//option[@value='unselectAll']"/>

        <!-- Select Options For Actions-->
        <element name="ActionsDelete" type="select" selector="//select[@id='promo_quote_grid_massaction-select']//option[@value='delete']"/>
        <element name="ActionsMassEnable" type="select" selector="//select[@id='promo_quote_grid_massaction-select']//option[@value='massEnable']"/>
        <element name="ActionsMassDisable" type="select" selector="//select[@id='promo_quote_grid_massaction-select']//option[@value='massDisable']"/>
        <element name="ActionsMassTopPriority" type="select" selector="//select[@id='promo_quote_grid_massaction-select']//option[@value='massTopPriority']"/>
        <element name="ActionsMassLowPriority" type="select" selector="//select[@id='promo_quote_grid_massaction-select']//option[@value='massLowPriority']"/>
        <element name="Submit" type="button" selector="//button[@title='Submit']" timeout="30"/>
    </section>

</sections>

