5
5
* See COPYING.txt for license details.
6
6
*/
7
7
-->
8
-
9
8
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
- <actionGroup name =" SwitchToPayPalGroupBtnActionGroup" >
12
- <annotations >
13
- <description >Switch to Paypal group button</description >
14
- </annotations >
15
- <arguments >
16
- <argument name =" elementNumber" type =" string" defaultValue =" 0" />
17
- <argument name =" frameName" type =" string" defaultValue =" myFrame" />
18
- </arguments >
19
- <!-- set ID for iframe of PayPal group button-->
20
- <executeJS function =" document.getElementsByClassName('component-frame')[{{elementNumber}}].setAttribute('name', '{{frameName}}');" stepKey =" setIDForIframe" />
21
- <!-- switch to iframe of PayPal group button-->
22
- <switchToIFrame userInput =" {{frameName}}" stepKey =" switchToIframe" />
23
- <waitForElementClickable selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" waitForPayPalBtn" />
24
- <click selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" clickPayPalBtn" />
25
- <switchToIFrame stepKey =" switchBackToMainFrame" />
26
- </actionGroup >
27
- </actionGroups >
10
+ <actionGroup name =" SwitchToPayPalGroupBtnActionGroup" >
11
+ <annotations >
12
+ <description >Switch to Paypal group button</description >
13
+ </annotations >
14
+ <arguments >
15
+ <argument name =" elementNumber" type =" string" defaultValue =" 0" />
16
+ <argument name =" frameName" type =" string" defaultValue =" myFrame" />
17
+ </arguments >
18
+ <!-- set ID for iframe of PayPal group button-->
19
+ <executeJS function =" document.getElementsByClassName('component-frame')[{{elementNumber}}].setAttribute('name', '{{frameName}}');" stepKey =" setIDForIframe" />
20
+ <!-- switch to iframe of PayPal group button-->
21
+ <switchToIFrame userInput =" {{frameName}}" stepKey =" switchToIframe" />
22
+ <waitForElementClickable selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" waitForPayPalBtn" />
23
+ <click selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" clickPayPalBtn" />
24
+ <switchToIFrame stepKey =" switchBackToMainFrame" />
25
+ </actionGroup >
26
+ </actionGroups >
0 commit comments