<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright 2020 Adobe
  * All Rights Reserved.
  */
-->
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
    <section name="PayPalPaymentSection">
        <element name="guestCheckout" type="input" selector="#guest"/>
        <element name="loginSection" type="input" selector=" #main&gt;#login"/>
        <element name="existingAccountLoginBtn" type="input" selector="#loginSection a"/>
        <element name="email" type="input" selector="//input[contains(@name, 'email') and not(contains(@style, 'display:none'))]"/>
        <element name="password" type="input" selector="//input[contains(@name, 'password') and not(contains(@style, 'display:none'))]"/>
        <element name="loginBtn" type="input" selector="//button[normalize-space(text())='Log In']"/>
        <element name="reviewUserInfo" type="text" selector="[data-testid=personalized-banner-content]"/>
        <element name="cartIcon" type="text" selector="[data-testid='header-show-cart-dropdown-btn']"/>
        <element name="itemName" type="text" selector="//p[contains(@class,'CartDropdown_line') and text()='{{productName}}']" parameterized="true"/>
        <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']"/>
        <element name="nextButton" type="button" selector="//button[normalize-space(text())='Next']"/>
        <element name="continueButton" type="button" selector=".continueButton"/>
        <element name="userName" type="text" selector="#reviewUserInfo"/>
        <element name="notYouLink" type="input" selector="#backToInputEmailLink"/>
        <element name="shippingMethod" type="text" selector="#shippingMethodCharge > span.selectedShippingMethod"/>
        <element name="paypalCart" type="text" selector="#transactionCart"/>
        <element name="productNamePosition" type="text" selector=".itemName"/>
        <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()), '$')]"/>
        <element name="subtotal" type="text" selector="//div[@data-testid='line-item-subtotal']//span[contains(text(),'{{subtotal}}')]" parameterized="true"/>
        <element name="shipping" type="text" selector="//div[@data-testid='line-item-shipping']//span[contains(text(),'{{shippingAmount}}')]" parameterized="true"/>
        <element name="total" type="text" selector="//span[@data-testid='cart-sheet-total']"/>
        <element name="shippingAddress" type="text" selector="//div[@data-testid='shipping-address']/p[@data-testid='ship-to-address']"/>
        <element name="close" type="button" selector="//button[@aria-label='Close']"/>
        <element name="paypalPopupButton1" type="button" selector="//button[span[text()='Pay with Debit or Credit Card']]"/>
        <element name="paypalPopupButton2" type="button" selector="//button[span[text()='Create an Account']]"/>
        <element name="changeShippingAddressButton" type="button" selector="#change-shipping"/>
        <element name="shippingAddressDropdown" type="select" selector="#shippingDropdown"/>
        <element name="selectedShippingAddress" type="text" selector="//div/p[contains(text(), '{{selectedAddress}}')]" parameterized="true"/>
        <element name="usePasswordInsteadButton" type="button" selector="(//button[text()='Use Password Instead'] | //a[text()='Try another way'])[1]"/>
    </section>
</sections>
