1234567891011121314151617181920212223242526272829303132333435 |
- <?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="StorefrontMinicartSection">
- <element name="productCount" type="text" selector="//header//div[contains(@class, 'minicart-wrapper')]//a[contains(@class, 'showcart')]//span[@class='counter-number']"/>
- <element name="productLinkByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details']//a[contains(text(), '{{var1}}')]" parameterized="true"/>
- <element name="productPriceByName" type="text" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//span[@class='price']" parameterized="true"/>
- <element name="productImageByName" type="text" selector="//header//ol[@id='mini-cart']//span[@class='product-image-container']//img[@alt='{{var1}}']" parameterized="true"/>
- <element name="productName" type="text" selector=".product-item-name"/>
- <element name="productOptionsDetailsByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//span[.='See Details']" parameterized="true"/>
- <element name="productOptionByNameAndAttribute" type="text" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details'][.//a[contains(text(), '{{var1}}')]]//dt[@class='label' and .='{{var2}}']/following-sibling::dd[@class='values']//span" parameterized="true"/>
- <element name="showCart" type="button" selector="a.showcart"/>
- <element name="quantity" type="button" selector="span.counter-number"/>
- <element name="miniCartOpened" type="button" selector="a.showcart.active"/>
- <element name="goToCheckout" type="button" selector="#top-cart-btn-checkout" timeout="30"/>
- <element name="viewAndEditCart" type="button" selector=".action.viewcart" timeout="30"/>
- <element name="miniCartItemsText" type="text" selector=".minicart-items"/>
- <element name="deleteMiniCartItem" type="button" selector=".action.delete" timeout="30"/>
- <element name="deleteMiniCartItemByName" type="button" selector="//ol[@id='mini-cart']//div[contains(., '{{var}}')]//a[contains(@class, 'delete')]" parameterized="true"/>
- <element name="miniCartSubtotalField" type="text" selector=".block-minicart .amount span.price"/>
- <element name="itemQuantity" type="input" selector="//a[text()='{{productName}}']/../..//input[contains(@class,'cart-item-qty')]" parameterized="true"/>
- <element name="itemQuantityUpdate" type="button" selector="//a[text()='{{productName}}']/../..//span[text()='Update']" parameterized="true"/>
- <element name="itemDiscount" type="text" selector="//tr[@class='totals']//td[@class='amount']/span"/>
- <element name="subtotal" type="text" selector="//tr[@class='totals sub']//td[@class='amount']/span"/>
- <element name="emptyCart" type="text" selector=".counter.qty.empty"/>
- <element name="minicartContent" type="block" selector="#minicart-content-wrapper"/>
- </section>
- </sections>
|