Skip to content

Commit ddd8405

Browse files
committed
AC-6116 :Cancel an order with paypal express checkout as payment method
paypal
1 parent 3f37841 commit ddd8405

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

app/code/Magento/Paypal/Test/Mftf/ActionGroup/SwitchToPayPalGroupBtnActionGroup.xml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
98
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
109
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

Comments
 (0)