Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

51 строка
5.3 KiB

  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="blockMiniCart" type="block" selector=".block-minicart" timeout="30"/>
  12. <element name="productCount" type="text" selector="//header//div[contains(@class, 'minicart-wrapper')]//a[contains(@class, 'showcart')]//span[@class='counter-number']"/>
  13. <element name="productLinkByName" type="button" selector="//header//ol[@id='mini-cart']//div[@class='product-item-details']//a[contains(text(), '{{var1}}')]" parameterized="true"/>
  14. <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"/>
  15. <element name="productPriceByItsName" type="text" selector="//a[normalize-space()='{{prodName}}']/../following-sibling::*//*[@class='price']" parameterized="true"/>
  16. <element name="productImageByName" type="text" selector="header ol[id='mini-cart'] span[class='product-image-container'] img[alt='{{prodName}}']" parameterized="true"/>
  17. <element name="productImageByItsName" type="text" selector="img[alt='{{prodName}}']" parameterized="true"/>
  18. <element name="productName" type="text" selector=".product-item-name"/>
  19. <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"/>
  20. <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"/>
  21. <element name="showCart" type="button" selector="a.showcart" timeout="60"/>
  22. <element name="quantity" type="button" selector="span.counter-number"/>
  23. <element name="miniCartOpened" type="button" selector="a.showcart.active"/>
  24. <element name="goToCheckout" type="button" selector="#top-cart-btn-checkout" timeout="60"/>
  25. <element name="viewAndEditCart" type="button" selector=".action.viewcart" timeout="30"/>
  26. <element name="miniCartItemsText" type="text" selector=".minicart-items"/>
  27. <element name="editMiniCartItem" type="button" selector=".action.edit" timeout="30"/>
  28. <element name="deleteMiniCartItem" type="button" selector=".action.delete" timeout="30"/>
  29. <element name="deleteMiniCartItemByName" type="button" selector="//ol[@id='mini-cart']//div[contains(., '{{var}}')]//a[contains(@class, 'delete')]" parameterized="true"/>
  30. <element name="miniCartSubtotalField" type="text" selector=".block-minicart .amount span.price"/>
  31. <element name="itemQuantityBySku" type="input" selector="#minicart-content-wrapper input[data-cart-item-id='{{productSku}}']" parameterized="true"/>
  32. <element name="itemQuantityUpdateBySku" type="button" selector="//div[@id='minicart-content-wrapper']//input[@data-cart-item-id='{{productSku}}']/../button[contains(@class, 'update-cart-item')]" parameterized="true"/>
  33. <element name="itemQuantity" type="input" selector="//a[text()='{{productName}}']/../..//input[contains(@class,'cart-item-qty')]" parameterized="true"/>
  34. <element name="itemQuantityUpdate" type="button" selector="//a[text()='{{productName}}']/../..//span[text()='Update']" parameterized="true"/>
  35. <element name="itemDiscount" type="text" selector="//tr[@class='totals']//td[@class='amount']/span"/>
  36. <element name="subtotal" type="text" selector="//tr[@class='totals sub']//td[@class='amount']/span"/>
  37. <element name="emptyCart" type="text" selector=".minicart-wrapper .counter.qty.empty"/>
  38. <element name="nonEmptyCartCounter" type="text" selector=".minicart-wrapper .counter.qty:not(.empty)"/>
  39. <element name="emptyMiniCart" type="text" selector="//div[@class='minicart-wrapper']//span[@class='counter qty empty']/../.."/>
  40. <element name="minicartContent" type="block" selector="#minicart-content-wrapper"/>
  41. <element name="messageEmptyCart" type="text" selector="//*[@id='minicart-content-wrapper']//*[contains(@class,'subtitle empty')]"/>
  42. <element name="emptyCartMessageContent" type="text" selector="#minicart-content-wrapper .minicart.empty.text" timeout="30"/>
  43. <element name="visibleItemsCountText" type="text" selector="//div[@class='items-total']"/>
  44. <element name="productQuantity" type="input" selector="//*[@id='mini-cart']//a[contains(text(),'{{productName}}')]/../..//div[@class='details-qty qty']//input[@data-item-qty='{{qty}}']" parameterized="true"/>
  45. <element name="productImage" type="text" selector="//ol[@id='mini-cart']//img[@class='product-image-photo']"/>
  46. <element name="productSubTotal" type="text" selector="//div[@class='subtotal']//span/span[@class='price']"/>
  47. <element name="productCountLabel" type="text" selector="//*[@id='minicart-content-wrapper']/div[2]/div[1]/span[2]"/>
  48. </section>
  49. </sections>