CheckoutPaymentSection.xml 6.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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="CheckoutPaymentSection">
  11. <element name="isPaymentSection" type="text" selector="//*[@class='opc-progress-bar']/li[contains(@class, '_active') and span[contains(.,'Review &amp; Payments')]]"/>
  12. <element name="availablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div:nth-child(2)>div.payment-method-title.field.choice"/>
  13. <element name="notAvailablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div.payment-method._active>div.payment-method-title.field.choice"/>
  14. <element name="billingNewAddressForm" type="text" selector="[data-form='billing-new-address']"/>
  15. <element name="billingAddressNotSameCheckbox" type="checkbox" selector="#billing-address-same-as-shipping-checkmo"/>
  16. <element name="placeOrderDisabled" type="button" selector="#checkout-payment-method-load button.disabled"/>
  17. <element name="update" type="button" selector=".payment-method-billing-address .action.action-update"/>
  18. <element name="guestFirstName" type="input" selector=".billing-address-form input[name*='firstname']"/>
  19. <element name="guestLastName" type="input" selector=".billing-address-form input[name*='lastname']"/>
  20. <element name="guestStreet" type="input" selector=".billing-address-form input[name*='street[0]']"/>
  21. <element name="guestCity" type="input" selector=".billing-address-form input[name*='city']"/>
  22. <element name="guestRegion" type="select" selector=".billing-address-form select[name*='region_id']"/>
  23. <element name="guestPostcode" type="input" selector=".billing-address-form input[name*='postcode']"/>
  24. <element name="guestTelephone" type="input" selector=".billing-address-form input[name*='telephone']"/>
  25. <element name="billingAddress" type="text" selector=".payment-method._active div.billing-address-details"/>
  26. <element name="cartItems" type="text" selector="ol.minicart-items"/>
  27. <element name="cartItemsArea" type="button" selector="div.block.items-in-cart"/>
  28. <element name="cartItemsAreaActive" type="textarea" selector="div.block.items-in-cart.active" timeout="30"/>
  29. <element name="checkMoneyOrderPayment" type="radio" selector="input#checkmo.radio" timeout="30"/>
  30. <element name="placeOrder" type="button" selector=".payment-method._active button.action.primary.checkout" timeout="30"/>
  31. <element name="paymentSectionTitle" type="text" selector="//*[@id='checkout-payment-method-load']//div[text()='Payment Method']" />
  32. <element name="orderSummarySubtotal" type="text" selector="//tr[@class='totals sub']//span[@class='price']" />
  33. <element name="orderSummaryShippingTotal" type="text" selector="//tr[@class='totals shipping excl']//span[@class='price']" />
  34. <element name="orderSummaryShippingMethod" type="text" selector="//tr[@class='totals shipping excl']//span[@class='value']" />
  35. <element name="orderSummaryTotal" type="text" selector="//tr[@class='grand totals']//span[@class='price']" />
  36. <element name="ProductItemByName" type="text" selector="//div[@class='product-item-details']//strong[@class='product-item-name'][text()='{{var1}}']" parameterized="true" />
  37. <element name="ProductOptionsByProductItemName" type="text" selector="//div[@class='product-item-details']//strong[@class='product-item-name'][text()='{{var1}}']//ancestor::div[@class='product-item-details']//div[@class='product options']" parameterized="true" />
  38. <element name="ProductOptionsActiveByProductItemName" type="text" selector="//div[@class='product-item-details']//strong[@class='product-item-name'][text()='{{var1}}']//ancestor::div[@class='product-item-details']//div[@class='product options active']" parameterized="true" />
  39. <element name="ProductOptionLinkActiveByProductItemName" type="text" selector="//div[@class='product-item-details']//strong[@class='product-item-name'][text()='{{var1}}']//ancestor::div[@class='product-item-details']//div[@class='product options active']//a[text() = '{{var2}}']" parameterized="true" />
  40. <element name="shipToInformation" type="text" selector="//div[@class='ship-to']//div[@class='shipping-information-content']" />
  41. <element name="shippingMethodInformation" type="text" selector="//div[@class='ship-via']//div[@class='shipping-information-content']" />
  42. <element name="paymentMethodTitle" type="text" selector=".payment-method-title span" />
  43. <element name="productOptionsByProductItemPrice" type="text" selector="//div[@class='product-item-inner']//div[@class='subtotal']//span[@class='price'][contains(.,'{{price}}')]//ancestor::div[@class='product-item-details']//div[@class='product options']" parameterized="true"/>
  44. <element name="productOptionsActiveByProductItemPrice" type="text" selector="//div[@class='subtotal']//span[@class='price'][contains(.,'{{price}}')]//ancestor::div[@class='product-item-details']//div[@class='product options active']" parameterized="true"/>
  45. <element name="productItemPriceByName" type="text" selector="//div[@class='product-item-details'][contains(., '{{ProductName}}')]//span[@class='price']" parameterized="true"/>
  46. <element name="tax" type="text" selector="[data-th='Tax'] span" timeout="30"/>
  47. <element name="taxPercentage" type="text" selector=".totals-tax-details .mark"/>
  48. <element name="orderSummaryTotalIncluding" type="text" selector="//tr[@class='grand totals incl']//span[@class='price']" />
  49. <element name="orderSummaryTotalExcluding" type="text" selector="//tr[@class='grand totals excl']//span[@class='price']" />
  50. <element name="shippingAndBillingAddressSame" type="input" selector="#billing-address-same-as-shipping-braintree_cc_vault"/>
  51. <element name="addressAction" type="button" selector="//span[text()='{{action}}']" parameterized="true"/>
  52. <element name="addressBook" type="button" selector="//a[text()='Address Book']"/>
  53. <element name="noQuotes" type="text" selector=".no-quotes-block"/>
  54. <element name="paymentMethodByName" type="text" selector="//*[@id='checkout-payment-method-load']//*[contains(@class, 'payment-group')]//label[normalize-space(.)='{{var1}}']" parameterized="true"/>
  55. </section>
  56. </sections>