<?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="SelectMultiShippingInfoActionGroup">
        <arguments>
            <argument name="shippingMethodPosition1" type="string" defaultValue="1"/>
            <argument name="shippingMethodPosition2" type="string" defaultValue="2"/>
            <argument name="shippingMethodType1" type="string" defaultValue="Fixed"/>
            <argument name="shippingMethodType2" type="string" defaultValue="Free"/>
        </arguments>
        <selectOption selector="{{ShippingMethodSection.selectShippingMethod(shippingMethodPosition1,shippingMethodPosition1)}}" userInput="{{shippingMethodType1}}" stepKey="selectShippingMethod1"/>
        <waitForPageLoad stepKey="waitForSecondShippingMethod"/>
        <selectOption selector="{{ShippingMethodSection.selectShippingMethod(shippingMethodPosition2,shippingMethodPosition2)}}" userInput="{{shippingMethodType2}}" stepKey="selectShippingMethod2"/>
        <waitForPageLoad stepKey="waitForRadioOptions"/>
        <click selector="{{ShippingMethodSection.goToBillingInfo}}" stepKey="goToBillingInformation"/>
    </actionGroup>
</actionGroups>
