<?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="StorefrontSelectOptionDateActionGroup">
        <annotations>
            <description>Selects the provided Month, Day and Year for the provided Product Option on a Storefront Product page.</description>
        </annotations>
        <arguments>
            <argument name="optionTitle" defaultValue="ProductOptionDate"/>
            <argument name="month" type="string"/>
            <argument name="day" type="string"/>
            <argument name="year" type="string"/>
        </arguments>
        
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionMonth(optionTitle.title)}}" userInput="{{month}}" stepKey="selectMonthForOptionDate"/>
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionDay(optionTitle.title)}}" userInput="{{day}}" stepKey="selectDayForOptionDate"/>
        <selectOption selector="{{StorefrontProductInfoMainSection.customOptionYear(optionTitle.title)}}" userInput="{{year}}" stepKey="selectYearForOptionDate"/>
    </actionGroup>
</actionGroups>
