File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Paypal/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
* See COPYING.txt for license details.
6
6
*/
7
7
-->
8
+
8
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
11
<actionGroup name =" SwitchToPayPalGroupBtnActionGroup" >
13
14
</annotations >
14
15
<arguments >
15
16
<argument name =" elementNumber" type =" string" defaultValue =" 0" />
16
- <argument name =" frameName" type =" string" defaultValue =" myFrame" />
17
17
</arguments >
18
18
<!-- set ID for iframe of PayPal group button-->
19
- <executeJS function =" document.getElementsByClassName('component-frame')[{{elementNumber}}].setAttribute('name', '{{frameName}} ');" stepKey =" setIDForIframe" />
19
+ <executeJS function =" document.getElementsByClassName('component-frame')[{{elementNumber}}].setAttribute('name', 'myFrame ');" stepKey =" setIDForIframe" />
20
20
<!-- switch to iframe of PayPal group button-->
21
21
<switchToIFrame userInput =" myFrame" stepKey =" switchToIframe" />
22
- <waitForElementClickable selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" waitForPayPalBtn" />
22
+ <waitForElementVisible selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" waitForPayPalBtn" />
23
23
<click selector =" {{CheckoutPaymentSection.PayPalBtn}}" stepKey =" clickPayPalBtn" />
24
24
<switchToIFrame stepKey =" switchBackToMainFrame" />
25
25
</actionGroup >
You can’t perform that action at this time.
0 commit comments