<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright 2024 Adobe
  * All Rights Reserved.
  */
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
    <section name="AdminOrderFormPaymentSection">
        <element name="shippingMethod" type="radio" selector="//input[@name='order[shipping_method]']"/>
        <element name="header" type="text" selector="#order-methods span.title"/>
        <element name="getShippingMethods" type="text" selector="#order-shipping_method a.action-default" timeout="30"/>
        <element name="flatRateOption" type="radio" selector="#s_method_flatrate_flatrate" timeout="30"/>
        <element name="shippingError" type="text" selector="#order[has_shipping]-error"/>
        <element name="freeShippingOption" type="radio" selector="#s_method_freeshipping_freeshipping" timeout="30"/>
        <element name="linkPaymentOptions" type="button" selector="#order-billing_method_summary>a" timeout="30"/>
        <element name="blockPayment" type="text" selector="#order-billing_method"/>
        <element name="checkMoneyOption" type="radio" selector="#p_method_checkmo" timeout="30"/>
        <element name="checkBankTransfer" type="radio" selector="#p_method_banktransfer" timeout="30"/>
        <element name="checkCashOnDelivery" type="radio" selector="#p_method_cashondelivery" timeout="30"/>
        <element name="checkPurchaseOrder" type="radio" selector="#p_method_purchaseorder" timeout="30"/>
        <element name="fieldPurchaseOrderNumber" type="input" selector="#po_number"/>
        <element name="paymentBlock" type="text" selector="#order-billing_method" />
        <element name="paymentError" type="text" selector="#payment[method]-error"/>
        <element name="bankTransferOption" type="radio" selector="#p_method_banktransfer" timeout="30"/>
        <element name="cashOnDeliveryOption" type="radio" selector="#p_method_cashondelivery" timeout="30"/>
        <element name="purchaseOrderOption" type="radio" selector="#p_method_purchaseorder" timeout="30"/>
        <element name="purchaseOrderNumber" type="input" selector="#po_number"/>
        <element name="freePaymentLabel" type="text" selector="#order-billing_method_form label[for='p_method_free']"/>
        <element name="paymentLabelWithRadioButton" type="text" selector="#order-billing_method_form .admin__field-option input[title='{{paymentMethodName}}'] + label" parameterized="true"/>
        <element name="checkoutPaymentMethod" type="radio" selector="//div[@class='payment-method _active']/div/input[@id= '{{methodName}}']" parameterized="true"/>
        <element name="storedCard" type="radio" selector="#p_method_payflowpro_cc_vault" timeout="30"/>
        <element name="selectPaymentMethod" type="radio" selector="//div[@id='order-billing_method_form']//input[@title='Check / Money order']"/>
        <element name="checkMoneyOrderText" type="text" selector="//div[@id='order-billing_method_form']//dl//dt//label[contains(text(),'Check / Money order')]"/>
        <element name="upsOption" type="radio" selector="//label[contains(text(),'UPS Worldwide Expedited -')]//ancestor::label[@class='admin__field-label']"/>
        <element name="DHLShipping" type="text" selector="//dd[@class='admin__order-shipment-methods-options' and contains(text(),'{{paymentMethodName}}')]" parameterized="true"/>
        <element name="shippingMethodName" type="text" selector="//*[contains(text(), '{{paymentMethodName}}')]" parameterized="true"/>
        <element name="verifyCheckMoneyPayment" type="text" selector="//label[@for='p_method_checkmo']"/>
    </section>
</sections>
