<?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="AdminInvoiceTotalSection">
        <element name="subtotalRow" type="text" selector=".order-subtotal-table tbody > tr:nth-of-type({{row}}) td span.price" parameterized="true"/>
        <element name="total" type="text" selector="//table[contains(@class,'order-subtotal-table')]/tbody/tr/td[contains(text(), '{{total}}')]/following-sibling::td/span/span[contains(@class, 'price')]" parameterized="true"/>
        <element name="grandTotal" type="text" selector=".order-subtotal-table tfoot tr.col-0>td span.price"/>
        <element name="invoiceComment" type="textarea" selector="[name='invoice[comment_text]']" timeout="30"/>
        <element name="itemQty" type="text" selector="td.col-qty"/>
        <element name="itemName" type="text" selector=".col-product .product-title"/>
        <element name="itemTotalPrice" type="text" selector=".col-total .price"/>
        <element name="totalTax" type="text" selector=".summary-total .price"/>
        <element name="backButton" type="button" selector="#back"/>
        <element name="creditMemosButton" type="button" selector="#credit-memo"/>
        <element name="amount" type="select" selector=".admin__control-select"/>
    </section>
</sections>
