<?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="ViewOrderSection">
        <element name="openInvoiceForm" type="button" selector="#order_invoice"/>
        <element name="selectCaptureType" type="select" selector="select[name='invoice[capture_case]']"/>
        <element name="submitInvoice" type="button" selector="button.submit-button"/>
        <element name="commentsHistory" type="button" selector="#sales_order_view_tabs_order_history"/>
        <element name="capturedAmountText" type="text" selector="//div[@class='comments-block-item'][2]/div[@class='comments-block-item-comment']"/>
        <element name="capturedAmountTextUnsubmitted" type="text" selector="//div[@class='comments-block-item'][1]/div[@class='comments-block-item-comment']"/>
        <element name="orderStatus" type="text" selector=".note-list-item .note-list-status"/>
        <element name="invoices" type="button" selector="#sales_order_view_tabs_order_invoices"/>
        <element name="firstInvoice" type="text" selector=".data-grid tbody tr"/>
        <element name="transactions" type="button" selector="#sales_order_view_tabs_order_transactions"/>
        <element name="confirmCapture" type="text" selector="//table[@id='order_transactions_table']/tbody/tr/td[6]"/>
        <element name="confirmClosed" type="text" selector="//table[@id='order_transactions_table']/tbody/tr/td[7]"/>
    </section>
</sections>
