<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
    <section name="AdminProductFormConfigurationsSection">
        <element name="sectionHeader" type="text" selector=".admin__collapsible-block-wrapper[data-index='configurable']"/>
        <element name="createConfigurations" type="button" selector="button[data-index='create_configurable_products_button']" timeout="30"/>
        <element name="currentVariationsRows" type="button" selector=".data-row"/>
        <element name="currentVariationsNameCells" type="textarea" selector=".admin__control-fields[data-index='name_container']"/>
        <element name="currentVariationsSkuCells" type="textarea" selector=".admin__control-fields[data-index='sku_container']"/>
        <element name="currentVariationsPriceCells" type="textarea" selector=".admin__control-fields[data-index='price_container']"/>
        <element name="currentVariationsQuantityCells" type="textarea" selector=".admin__control-fields[data-index='quantity_container']"/>
        <element name="currentVariationsAttributesCells" type="textarea" selector=".admin__control-fields[data-index='attributes']"/>
        <element name="currentVariationsStatusCells" type="textarea" selector="._no-header[data-index='status']"/>
        <element name="actionsBtn" type="button" selector="(//button[@class='action-select']/span[contains(text(), 'Select')])[{{var1}}]" parameterized="true"/>
        <element name="removeProductBtn" type="button" selector="//a[text()='Remove Product']"/>
        <element name="disableProductBtn" type="button" selector="//a[text()='Disable Product']"/>
        <element name="enableProductBtn" type="button" selector="//a[text()='Enable Product']"/>
    </section>
    <section name="AdminConfigurableProductFormSection">
        <element name="productWeight" type="input" selector=".admin__control-text[name='product[weight]']"/>
        <element name="productQuantity" type="input" selector=".admin__control-text[name='product[quantity_and_stock_status][qty]']"/>
        <element name="currentVariationsQuantityCells" type="button" selector="td[data-index='quantity_container']"/>
        <element name="rowByCode" type="textarea" selector="//span[contains(text(), '{{var1}}-{{var2}}')]//ancestor-or-self::tr" parameterized="true"/>
    </section>
    <section name="AdminConfigurableProductSelectAttributesSlideOut">
        <element name="grid" type="button" selector=".admin__data-grid-wrap tbody"/>
    </section>
    <section name="StorefrontConfigurableProductPage">
        <element name="productAttributeDropDown" type="select" selector="select[id*='attribute']"/>
    </section>
</sections>
