<?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="AdminNewWidgetSection">
        <element name="widgetType" type="select" selector="#code"/>
        <element name="widgetDesignTheme" type="select" selector="#theme_id"/>
        <element name="continue" type="button" selector="#continue_button"/>
        <element name="widgetTitle" type="input" selector="#title"/>
        <element name="widgetStoreIds" type="select" selector="#store_ids"/>
        <element name="addLayoutUpdate" type="button" selector=".action-default.scalable.action-add"/>
        <element name="selectDisplayOn" type="select" selector="#widget_instance[0][page_group]"/>
        <element name="selectContainer" type="select" selector="#all_pages_0>table>tbody>tr>td:nth-child(1)>div>div>select"/>
        <element name="selectTemplate" type="select" selector=".widget-layout-updates .block_template_container .select"/>
        <element name="widgetOptions" type="select" selector="#widget_instace_tabs_properties_section"/>
        <element name="addNewCondition" type="select" selector=".rule-param.rule-param-new-child"/>
        <element name="selectCondition" type="input" selector="#conditions__1__new_child"/>
        <element name="ruleParameter" type="select" selector="#conditions__1__children>li:nth-child(1)>span:nth-child(4)>a"/>
        <element name="setRuleParameter" type="input" selector="#conditions__1--1__value"/>
        <element name="applyParameter" type="button" selector=".rule-param-apply"/>
        <element name="openChooser" type="button" selector=".rule-chooser-trigger"/>
        <element name="selectAll" type="checkbox" selector=".admin__control-checkbox"/>
        <element name="widgetSelectBlock" type="button" selector="//button[@class='action-default scalable btn-chooser']"/>
        <element name="selectBlockTitle" type="input" selector="//input[@name='chooser_title']"/>
        <element name="searchBlock" type="button" selector="//div[@class='admin__filter-actions']/button[@title='Search']"/>
        <element name="blockStatus" type="select" selector="//select[@name='chooser_is_active']"/>
        <element name="searchedBlock" type="button" selector="//*[@class='magento-message']//tbody/tr/td[1]"/>
        <element name="saveWidget" type="select" selector="#save"/>
        <element name="displayMode" type="select" selector="select[id*='display_mode']"/>
        <element name="restrictTypes" type="select" selector="select[id*='types']"/>
        <element name="saveAndContinue" type="button" selector="#save_and_edit_button" timeout="30"/>
    </section>
</sections>
