CheckoutCartSummarySection.xml 2.09 KB
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?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="CheckoutCartSummarySection">
        <element name="elementPosition" type="text" selector=".data.table.totals > tbody tr:nth-of-type({{value}}) > th" parameterized="true"/>
        <element name="subtotal" type="text" selector="//*[@id='cart-totals']//tr[@class='totals sub']//td//span[@class='price']"/>
        <element name="shippingMethodForm" type="text" selector="#co-shipping-method-form"/>
        <element name="shippingMethod" type="text" selector="//*[@id='cart-totals']//tr[@class='totals shipping excl']//th//span[@class='value']"/>
        <element name="shipping" type="text" selector="//*[@id='cart-totals']//tr[@class='totals shipping excl']//td//span[@class='price']"/>
        <element name="total" type="text" selector="//*[@id='cart-totals']//tr[@class='grand totals']//td//span[@class='price']"/>
        <element name="proceedToCheckout" type="button" selector=".action.primary.checkout span" timeout="30"/>
        <element name="discountAmount" type="text" selector="td[data-th='Discount']"/>
        <element name="shippingHeading" type="button" selector="#block-shipping-heading"/>
        <element name="postcode" type="input" selector="input[name='postcode']" timeout="10"/>
        <element name="stateProvince" type="select" selector="select[name='region_id']" timeout="10"/>
        <element name="country" type="select" selector="select[name='country_id']" timeout="10"/>
        <element name="countryParameterized" type="select" selector="select[name='country_id'] > option:nth-child({{var}})" timeout="10" parameterized="true"/>
        <element name="estimateShippingAndTax" type="text" selector="#block-shipping-heading" timeout="5"/>
        <element name="flatRateShippingMethod" type="input" selector="#s_method_flatrate_flatrate" timeout="30"/>
    </section>
</sections>