StorefrontMiniCartSection.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
  10. <section name="StorefrontMinicartSection">
  11. <element name="productCount" type="text" selector="//header//div[contains(@class, 'minicart-wrapper')]//a[contains(@class, 'showcart')]//span[@class='counter-number']"/>
  12. <element name="productLinkByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details']//a[contains(text(), '{{var1}}')]" parameterized="true"/>
  13. <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"/>
  14. <element name="productImageByName" type="text" selector="//header//ol[@id='mini-cart']//span[@class='product-image-container']//img[@alt='{{var1}}']" parameterized="true"/>
  15. <element name="productName" type="text" selector=".product-item-name"/>
  16. <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"/>
  17. <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"/>
  18. <element name="showCart" type="button" selector="a.showcart"/>
  19. <element name="quantity" type="button" selector="span.counter-number"/>
  20. <element name="miniCartOpened" type="button" selector="a.showcart.active"/>
  21. <element name="goToCheckout" type="button" selector="#top-cart-btn-checkout" timeout="30"/>
  22. <element name="viewAndEditCart" type="button" selector=".action.viewcart" timeout="30"/>
  23. <element name="miniCartItemsText" type="text" selector=".minicart-items"/>
  24. <element name="deleteMiniCartItem" type="button" selector=".action.delete" timeout="30"/>
  25. <element name="deleteMiniCartItemByName" type="button" selector="//ol[@id='mini-cart']//div[contains(., '{{var}}')]//a[contains(@class, 'delete')]" parameterized="true"/>
  26. <element name="miniCartSubtotalField" type="text" selector=".block-minicart .amount span.price"/>
  27. <element name="itemQuantity" type="input" selector="//a[text()='{{productName}}']/../..//input[contains(@class,'cart-item-qty')]" parameterized="true"/>
  28. <element name="itemQuantityUpdate" type="button" selector="//a[text()='{{productName}}']/../..//span[text()='Update']" parameterized="true"/>
  29. <element name="itemDiscount" type="text" selector="//tr[@class='totals']//td[@class='amount']/span"/>
  30. <element name="subtotal" type="text" selector="//tr[@class='totals sub']//td[@class='amount']/span"/>
  31. <element name="emptyCart" type="text" selector=".counter.qty.empty"/>
  32. <element name="minicartContent" type="block" selector="#minicart-content-wrapper"/>
  33. </section>
  34. </sections>