NewOrderSection.xml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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="NewOrderSection">
  11. <element name="createNewOrder" type="button" selector="#add"/>
  12. <element name="customer" type="button" selector="//td[contains(text(), 'Abgar')]"/>
  13. <element name="addProducts" type="button" selector="#add_products"/>
  14. <element name="chooseProduct" type="button" selector="//td[contains(text(),'ProductTest')]"/>
  15. <element name="addSelectedProduct" type="button" selector="//button[@title='Add Selected Product(s) to Order']"/>
  16. <element name="openAddresses" type="button" selector="#order-billing_address_customer_address_id"/>
  17. <element name="chooseAddress" type="button" selector="//select[@id='order-billing_address_customer_address_id']//option[contains(text(), 'Abgar')]"/>
  18. <element name="state" type="button" selector="#order-billing_address_region"/>
  19. <element name="openShippingMethods" type="button" selector="//a[@class='action-default']"/>
  20. <element name="shippingMethod" type="button" selector="//label[@class='admin__field-label' and @for='s_method_flatrate_flatrate']"/>
  21. <element name="creditCardBraintree" type="button" selector="#p_method_braintree"/>
  22. <element name="openCardTypes" type="button" selector="#braintree_cc_type"/>
  23. <element name="masterCard" type="button" selector="//option[contains(text(), 'MasterCard')]"/>
  24. <element name="cardFrame" type="iframe" selector="braintree-hosted-field-number"/>
  25. <element name="monthFrame" type="iframe" selector="braintree-hosted-field-expirationMonth"/>
  26. <element name="yearFrame" type="iframe" selector="braintree-hosted-field-expirationYear"/>
  27. <element name="cvvFrame" type="iframe" selector="braintree-hosted-field-cvv"/>
  28. <element name="creditCardNumber" type="input" selector="#credit-card-number"/>
  29. <element name="expirationMonth" type="input" selector="#expiration-month"/>
  30. <element name="expirationYear" type="input" selector="#expiration-year"/>
  31. <element name="cvv" type="input" selector="#cvv"/>
  32. <element name="submitOrder" type="input" selector="#submit_order_top_button"/>
  33. <element name="successMessage" type="input" selector="#messages"/>
  34. </section>
  35. </sections>