|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 | /** |
4 | | - * Copyright © Magento, Inc. All rights reserved. |
5 | | - * See COPYING.txt for license details. |
| 4 | + * Copyright 2020 Adobe |
| 5 | + * All Rights Reserved. |
6 | 6 | */ |
7 | 7 | --> |
8 | 8 | <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
13 | 13 | <element name="existingAccountLoginBtn" type="input" selector="#loginSection a"/> |
14 | 14 | <element name="email" type="input" selector="//input[contains(@name, 'email') and not(contains(@style, 'display:none'))]"/> |
15 | 15 | <element name="password" type="input" selector="//input[contains(@name, 'password') and not(contains(@style, 'display:none'))]"/> |
16 | | - <element name="loginBtn" type="input" selector="button#btnLogin"/> |
| 16 | + <element name="loginBtn" type="input" selector="//button[normalize-space(text())='Log In']"/> |
17 | 17 | <element name="reviewUserInfo" type="text" selector="[data-testid=personalized-banner-content]"/> |
18 | 18 | <element name="cartIcon" type="text" selector="[data-testid='header-show-cart-dropdown-btn']"/> |
19 | 19 | <element name="itemName" type="text" selector="//p[contains(@class,'CartDropdown_line') and text()='{{productName}}']" parameterized="true"/> |
20 | | - <element name="paypalSubmitBtn" type="text" selector="#payment-submit-btn"/> |
21 | | - <element name="nextButton" type="button" selector="#btnNext"/> |
| 20 | + <element name="paypalSubmitBtn" type="text" selector="//button[(@id='one-time-cta' and @data-atomic-wait-domain='xo') or @data-testid='submit-button-initial' or @data-id='payment-submit-btn']"/> |
| 21 | + <element name="nextButton" type="button" selector="//button[normalize-space(text())='Next']"/> |
22 | 22 | <element name="continueButton" type="button" selector=".continueButton"/> |
23 | 23 | <element name="userName" type="text" selector="#reviewUserInfo"/> |
24 | 24 | <element name="notYouLink" type="input" selector="#backToInputEmailLink"/> |
25 | 25 | <element name="shippingMethod" type="text" selector="#shippingMethodCharge > span.selectedShippingMethod"/> |
26 | 26 | <element name="paypalCart" type="text" selector="#transactionCart"/> |
27 | 27 | <element name="productNamePosition" type="text" selector=".itemName"/> |
28 | | - <element name="orderTotalOnPaypalCheckout" type="text" selector="//div[@id='cart']//span[contains(text(),'$')]"/> |
| 28 | + <element name="orderTotalOnPaypalCheckout" type="text" selector="//button[(@id='one-time-cta' and @data-atomic-wait-domain='xo') or @data-testid='submit-button-initial' or @data-id='payment-submit-btn']//div[starts-with(normalize-space(text()), '$')]"/> |
29 | 29 | <element name="subtotal" type="text" selector="//div[@data-testid='line-item-subtotal']//span[contains(text(),'{{subtotal}}')]" parameterized="true"/> |
30 | 30 | <element name="shipping" type="text" selector="//div[@data-testid='line-item-shipping']//span[contains(text(),'{{shippingAmount}}')]" parameterized="true"/> |
31 | 31 | <element name="total" type="text" selector="//span[@data-testid='cart-sheet-total']"/> |
32 | 32 | <element name="shippingAddress" type="text" selector="//div[@data-testid='shipping-address']/p[@data-testid='ship-to-address']"/> |
33 | 33 | <element name="close" type="button" selector="//button[@aria-label='Close']"/> |
34 | | - <element name="paypalPopupButton1" type="button" selector="//button[text()='Pay with Debit or Credit Card']"/> |
35 | | - <element name="paypalPopupButton2" type="button" selector="//button[text()='Create an Account']"/> |
| 34 | + <element name="paypalPopupButton1" type="button" selector="//button[span[text()='Pay with Debit or Credit Card']]"/> |
| 35 | + <element name="paypalPopupButton2" type="button" selector="//button[span[text()='Create an Account']]"/> |
36 | 36 | <element name="changeShippingAddressButton" type="button" selector="#change-shipping"/> |
37 | 37 | <element name="shippingAddressDropdown" type="select" selector="#shippingDropdown"/> |
38 | 38 | <element name="selectedShippingAddress" type="text" selector="//div/p[contains(text(), '{{selectedAddress}}')]" parameterized="true"/> |
|
0 commit comments