<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="LoginToPayPalPaymentAccount">
        <arguments>
            <argument name="userName" type="string" defaultValue="{{Payer.buyerEmail}}"/>
            <argument name="password" type="string" defaultValue="{{Payer.buyerPassword}"/>
        </arguments>
        <fillField selector="{{PayPalPaymentSection.email}}" userInput="{{userName}}" stepKey="fillEmail"/>
        <click selector="{{PayPalPaymentSection.nextButton}}" stepKey="clickNext"/>
        <waitForElementVisible selector="{{PayPalPaymentSection.password}}" stepKey="waitForPasswordField"/>
        <fillField selector="{{PayPalPaymentSection.password}}" userInput="{{password}}" stepKey="fillPassword"/>
        <click selector="{{PayPalPaymentSection.loginBtn}}" stepKey="clickLogin"/>
        <waitForPageLoad stepKey="waitForLoginPageLoad"/>
        <click selector="{{PayPalPaymentSection.continueButton}}" stepKey="clickContinue"/>
    </actionGroup>
</actionGroups>
