<?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="StorefrontCustomerOrderViewSection">
        <element name="reorder" type="text" selector="a.action.order" timeout="30"/>
        <element name="view" type="text" selector="a.action.view" timeout="30"/>
        <element name="orderTitle" type="text" selector=".page-title span"/>
        <element name="myOrdersTable" type="text" selector="#my-orders-table"/>
        <element name="subtotal" type="text" selector=".subtotal .amount"/>
        <element name="paymentMethod" type="text" selector=".payment-method dt"/>
        <element name="printOrderLink" type="text" selector="a.action.print" timeout="30"/>
        <element name="shippingAddress" type="text" selector=".box.box-order-shipping-address"/>
        <element name="billingAddress" type="text" selector=".box.box-order-billing-address"/>
        <element name="orderStatusInGrid" type="text" selector="//td[contains(.,'{{orderId}}')]/../td[contains(.,'{{status}}')]" parameterized="true"/>
        <element name="pager" type="block" selector=".pager"/>
        <element name="createdDate" type="text" selector=".block-order-details-comments .comment-date"/>
        <element name="orderPlacedBy" type="text" selector=".block-order-details-comments .comment-content"/>
        <element name="orderComment" type="text" selector=".block-order-details-comments .comment-content"/>
        <element name="productName" type="text" selector="//td[@data-th='Product Name']"/>
        <element name="productRows" type="text" selector="#my-orders-table tbody tr"/>
        <element name="productNameByRow" type="text" parameterized="true" selector="#my-orders-table tbody:nth-of-type({{index}}) td.name"/>
        <element name="productSkuByRow" type="text" parameterized="true" selector="#my-orders-table tbody:nth-of-type({{index}}) td.sku"/>
        <element name="productPriceByRow" type="text" parameterized="true" selector="#my-orders-table tbody:nth-of-type({{index}}) td.price"/>
        <element name="productQuantityByRow" type="text" parameterized="true" selector="#my-orders-table tbody:nth-of-type({{index}}) td.qty"/>
        <element name="productSubtotalByRow" type="text" parameterized="true" selector="#my-orders-table tbody:nth-of-type({{index}}) td.subtotal"/>
        <element name="grandTotal" type="text" selector="//tr[@class='grand_total']//td[@data-th='Grand Total']"/>
        <element name="pagerLink" type="text" selector=".pager a.page[href*='order_id/{{orderId}}/?p={{pageNumber}}']" parameterized="true"/>
        <element name="itemCountOnPage" type="text" selector="#my-orders-table tbody"/>
        <element name="subTotal" type="text" selector="//tr[@class='subtotal']//td[@data-th='Subtotal']/span"/>
        <element name="shipping" type="text" selector="//tr[@class='shipping']//td[@data-th='Shipping &amp; Handling']/span"/>
        <element name="FPT" type="text" selector="//tr[@class='weee_ord_totals']//td[@data-th='FPT']/span"/>
        <element name="taxRule" type="text" selector="//table[contains(@class, 'data table table-order-items')]//td[normalize-space(.)='Canada-GST-5% (5%)']/following-sibling::td//span[@class='price']"/>
        <element name="taxRule1" type="text" selector="//table[contains(@class, 'data table table-order-items')]//td[normalize-space(.)='Canada-GST-PST-5% (5%)']/following-sibling::td//span[@class='price']"/>
        <element name="productRate" type="text" selector="//table[contains(@class, 'data table table-order-items')]//td[normalize-space(.)='Product Rate CA (10%)']/following-sibling::td//span[@class='price']"/>
        <element name="shippingRate" type="text" selector="//table[contains(@class, 'data table table-order-items')]//td[normalize-space(.)='Shipping Rate CA (5%)']/following-sibling::td//span[@class='price']"/>
        <element name="subtotalExclTax" type="text" selector="//tr[@class='subtotal_excl']//td[@data-th='Subtotal (Excl.Tax)']/span"/>
        <element name="subtotalInclTax" type="text" selector="//tr[@class='subtotal_incl']//td[@data-th='Subtotal (Incl.Tax)']/span"/>
        <element name="shippingAndHandlingExclTax" type="text" selector="//tr[@class='shipping']//td[@data-th='Shipping &amp; Handling (Excl.Tax)']/span"/>
        <element name="shippingAndHandlingInclTax" type="text" selector="//tr[@class='shipping_incl']//td[@data-th='Shipping &amp; Handling (Incl.Tax)']/span"/>
        <element name="grandTotalExclTax" type="text" selector="//tr[@class='grand_total']//td[@data-th='Grand Total (Excl.Tax)']"/>
        <element name="grandTotalInclTax" type="text" selector="//tr[@class='grand_total_incl']//td[@data-th='Grand Total (Incl.Tax)']"/>
        <element name="grandTotalToBeCharged" type="text" selector=".base_grandtotal .price"/>
    </section>
</sections>
