CheckoutShippingSection.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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="CheckoutShippingSection">
  11. <element name="isShippingStep" type="text" selector="//*[@class='opc-progress-bar']/li[contains(@class, '_active') and span[contains(.,'Shipping')]]"/>
  12. <element name="shippingTab" type="text" selector="//li[contains(@class,'opc-progress-bar-item')]//*[text()='Shipping']" timeout="30"/>
  13. <element name="selectedShippingAddress" type="text" selector=".shipping-address-item.selected-item"/>
  14. <element name="editAddressButton" type="button" selector=".action-edit-address" timeout="30"/>
  15. <element name="addressDropdown" type="select" selector="[name=billing_address_id]"/>
  16. <element name="newAddressButton" type="button" selector=".action-show-popup" timeout="30"/>
  17. <element name="email" type="input" selector="#customer-email"/>
  18. <element name="firstName" type="input" selector="input[name=firstname]"/>
  19. <element name="lastName" type="input" selector="input[name=lastname]"/>
  20. <element name="company" type="input" selector="input[name=company]"/>
  21. <element name="street" type="input" selector="input[name='street[0]']"/>
  22. <element name="street2" type="input" selector="input[name='street[1]']"/>
  23. <element name="city" type="input" selector="input[name=city]"/>
  24. <element name="region" type="select" selector="select[name=region_id]"/>
  25. <element name="postcode" type="input" selector="input[name=postcode]"/>
  26. <element name="country" type="select" selector="select[name=country_id]"/>
  27. <element name="telephone" type="input" selector="input[name=telephone]"/>
  28. <element name="saveAddress" type="button" selector=".action-save-address"/>
  29. <element name="updateAddress" type="button" selector=".action-update"/>
  30. <element name="next" type="button" selector="button.button.action.continue.primary" timeout="30"/>
  31. <element name="firstShippingMethod" type="radio" selector="//*[@id='checkout-shipping-method-load']//input[@class='radio']"/>
  32. <element name="defaultShipping" type="button" selector=".billing-address-details"/>
  33. <element name="state" type="button" selector="//*[text()='Alabama']"/>
  34. <element name="stateInput" type="input" selector="input[name=region]"/>
  35. <element name="regionOptions" type="select" selector="select[name=region_id] option"/>
  36. <element name="editActiveAddress" type="button" selector="//div[@class='shipping-address-item selected-item']//span[text()='Edit']" timeout="30"/>
  37. </section>
  38. </sections>