<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright 2025 Adobe
  * All Rights Reserved.
  */
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
    <actionGroup name="AdminEnableUpsWithWeightUnitActionGroup" extends="AdminEnableUPSActionGroup">
        <arguments>
            <argument name="weight" type="string"/>
        </arguments>
        <scrollTo selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}"  x="0" y="-120" stepKey="scrollToWeightUnits" after="enterTrackingRestURl"/>
        <waitForElementClickable selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="waitForUnCheckWeightUnits" after="scrollToWeightUnits"/>
        <uncheckOption selector="{{AdminShippingMethodUPSSection.weightUnitCheckbox}}" stepKey="unSelectWeightUnits" after="waitForUnCheckWeightUnits"/>
        <selectOption selector="{{AdminShippingMethodUPSSection.weightUnitSelect}}" userInput="{{weight}}" stepKey="selectWeightUnit" after="unSelectWeightUnits"/>
    </actionGroup>
</actionGroups>
