<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
 * @package Free Gift MFTF 2 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="AdminSalesRuleWizardSection">
        <element name="Scenario" type="input" timeout="10" parameterized="true" selector="//label[@for='{{scenario}}']"/>
        <element name="ButtonNext" type="button" timeout="10" selector="//button[@class='action-default action-primary action-next-step']"/>
        <element name="CustomerAddsHowManyProducts" type="input" selector="//div[@data-index='need_to_buy']//input[@name='discount_step']"/>
        <element name="CustomerAddsHowManyFree" type="input" selector="//input[@name='discount_amount']"/>
        <element name="CustomerAddsWhichProductsGifted" type="select" timeout="10" selector="//select[@name='is_same_product']"/>
        <element name="DoesCouponCode" type="select" selector="//select[@name='is_coupon']"/>
        <element name="Websites" type="select" selector="//select[@name='website_ids']/option[@value=1]"/>
        <element name="CustomerGroupsSelect" type="select" selector="//select[@name='customer_group_ids']"/>
        <element name="HowManyTriggered" type="select" selector="//select[@name='apply_time']"/>
        <element name="ExtraCriteria" type="select" selector="//select[@name='is_conditions']"/>
        <element name="CouponCode" type="input" selector="//input[@name='coupon_code']"/>
        <element name="RuleName" type="input" selector="//input[@name='rule_name']"/>
        <element name="ActivateRule" type="checkbox" selector="//div[@data-index='is_active']//label[@class='admin__actions-switch-label']"/>
    </section>

</sections>
