|
33 | 33 | <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/>
|
34 | 34 | </actionGroup>
|
35 | 35 |
|
| 36 | + <actionGroup name="SampleConfigPayPalExpressCheckout"> |
| 37 | + <annotations> |
| 38 | + <description>Goes to the 'Configuration' page for 'Payment Methods'. Fills in the provided Sample PayPal credentials and other details. Clicks on Save.</description> |
| 39 | + </annotations> |
| 40 | + <arguments> |
| 41 | + <argument name="credentials" defaultValue="SamplePaypalExpressConfig"/> |
| 42 | + <argument name="countryCode" type="string" defaultValue="us"/> |
| 43 | + </arguments> |
| 44 | + <amOnPage url="{{AdminConfigPaymentMethodsPage.url}}" stepKey="navigateToPaymentConfigurationPage"/> |
| 45 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 46 | + <click selector="{{PayPalExpressCheckoutConfigSection.configureBtn(countryCode)}}" stepKey="clickPayPalConfigureBtn"/> |
| 47 | + <waitForElementVisible selector="{{PayPalAdvancedSettingConfigSection.advancedSettingTab(countryCode)}}" stepKey="waitForAdvancedSettingTab"/> |
| 48 | + <fillField selector ="{{PayPalExpressCheckoutConfigSection.email(countryCode)}}" userInput="{{credentials.paypal_express_email}}" stepKey="inputEmailAssociatedWithPayPalMerchantAccount"/> |
| 49 | + <selectOption selector ="{{PayPalExpressCheckoutConfigSection.apiMethod(countryCode)}}" userInput="API Signature" stepKey="inputAPIAuthenticationMethods"/> |
| 50 | + <fillField selector ="{{PayPalExpressCheckoutConfigSection.username(countryCode)}}" userInput="{{credentials.paypal_express_api_username}}" stepKey="inputAPIUsername"/> |
| 51 | + <fillField selector ="{{PayPalExpressCheckoutConfigSection.password(countryCode)}}" userInput="{{credentials.paypal_express_api_password}}" stepKey="inputAPIPassword"/> |
| 52 | + <fillField selector ="{{PayPalExpressCheckoutConfigSection.signature(countryCode)}}" userInput="{{credentials.paypal_express_api_signature}}" stepKey="inputAPISignature"/> |
| 53 | + <selectOption selector ="{{PayPalExpressCheckoutConfigSection.sandboxMode(countryCode)}}" userInput="Yes" stepKey="enableSandboxMode"/> |
| 54 | + <selectOption selector="{{PayPalExpressCheckoutConfigSection.enableSolution(countryCode)}}" userInput="Yes" stepKey="enableSolution"/> |
| 55 | + <fillField selector ="{{PayPalExpressCheckoutConfigSection.merchantID(countryCode)}}" userInput="{{credentials.paypal_express_merchantID}}" stepKey="inputMerchantID"/> |
| 56 | + <!--Save configuration--> |
| 57 | + <click selector="{{AdminConfigSection.saveButton}}" stepKey="saveConfig"/> |
| 58 | + </actionGroup> |
| 59 | + |
36 | 60 | <actionGroup name="CreatePayPalOrderWithSelectedPaymentMethodActionGroup" extends="CreateOrderToPrintPageActionGroup">
|
37 | 61 | <annotations>
|
38 | 62 | <description>EXTENDS: CreateOrderToPrintPageActionGroup. Clicks on PayPal. Fills the PayPay details in the modal. PLEASE NOTE: The PayPal Payment credentials are Hardcoded using 'Payer'.</description>
|
|
0 commit comments