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

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
    <section name="AdminOrderFormItemsSection">
        <element name="skuNumber" type="input" selector="#sku_{{row}}" parameterized="true"/>
        <element name="qty" type="input" selector="#sku_qty_{{row}}" parameterized="true"/>
        <element name="addAnother" type="button" selector="#sku_container .col-actions > button.add"/>
        <element name="deleteRow" type="button" selector="#sku_container tr:nth_of_type({{row}}) .col-actions button.action-delete" parameterized="true"/>
        <element name="addToOrder" type="button" selector="#order-additional_area .admin__page-section-title .actions button.action-add"/>
        <element name="addProducts" type="button" selector="//section[@id='order-items']/div/div/button/span[text() = 'Add Products']" timeout="30"/>
        <element name="search" type="button" selector="#sales_order_create_search_grid [data-action='grid-filter-apply']" timeout="30"/>
        <element name="resetFilter" type="button" selector="#sales_order_create_search_grid [data-action='grid-filter-reset']" timeout="30"/>
        <element name="idFilter" type="input" selector="#sales_order_create_search_grid_filter_entity_id"/>
        <element name="nameFilter" type="input" selector="#sales_order_create_search_grid_filter_name"/>
        <element name="skuFilter" type="input" selector="#sales_order_create_search_grid_filter_sku"/>
        <element name="priceFromFilter" type="input" selector="#sales_order_create_search_grid_filter_price_from"/>
        <element name="priceToFilter" type="input" selector="#sales_order_create_search_grid_filter_price_to"/>
        <element name="selectedFilter" type="select" selector="#sales_order_create_search_grid_filter_in_products"/>
        <element name="row" type="text" selector="#sales_order_create_search_grid_table > tbody tr:nth-of-type({{row}})" parameterized="true"/>
        <element name="rowCheck" type="checkbox" selector="#sales_order_create_search_grid_table > tbody tr:nth-of-type({{row}}) td.col-select [type=checkbox]" parameterized="true"/>
        <element name="rowQty" type="input" selector="#sales_order_create_search_grid_table > tbody tr:nth-of-type({{row}}) td.col-qty [name='qty']" parameterized="true"/>
        <element name="rowPrice" type="text" selector="#sales_order_create_search_grid_table > tbody tr:nth-of-type({{row}}) td.price" parameterized="true"/>
        <element name="addSelected" type="button" selector="#order-search .admin__page-section-title .actions button.action-add" timeout="30"/>
        <element name="customPriceCheckbox" type="checkbox" selector="//*[@class='custom-price-block']/input"/>
        <element name="customPriceField" type="input" selector="//*[@class='custom-price-block']/following-sibling::input"/>
        <element name="updateItemsAndQuantities" type="button" selector="//span[contains(text(),'Update Items and Quantities')]"/>
        <element name="creditMemo" type="input" selector="#order_creditmemo"/>
        <element name="configure" type="button" selector=".product-configure-block button.action-default.scalable" timeout="30"/>
        <element name="couponCode" type="input" selector="#order-coupons input" timeout="30"/>
        <element name="applyCoupon" type="button" selector="#order-coupons button"/>
        <element name="removeCoupon" type="button" selector=".added-coupon-code .action-remove"/>
        <element name="removeSpecificCoupon" type="button" selector=".added-coupon-code.coupon-code-{{couponCode}} .action-remove" parameterized="true"/>
        <element name="couponCodeApplied" type="text" selector=".added-coupon-code.coupon-code-{{couponCode}} span" parameterized="true"/>
        <element name="totalRecords" type="text" selector="#sales_order_create_search_grid-total-count"/>
        <element name="numberOfPages" type="text" selector="div.admin__data-grid-pager-wrap div.admin__data-grid-pager > label"/>
        <element name="productName" type="button" selector="(.//*[@class='col-product'])[2]/span"/>
        <element name="productCompositeDatePicker" type="button" selector="//*[@id='product_composite_configure_fields_options']//div[{{row}}]//button[contains(@class, 'ui-datepicker-trigger')]" parameterized="true"/>
        <element name="datepickerGoToday" type="button" selector="#ui-datepicker-div button.ui-datepicker-current" timeout="30"/>
        <element name="datepickerClose" type="button" selector="#ui-datepicker-div button.ui-datepicker-close" timeout="30"/>
    </section>
</sections>
