<?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="AdminEnhancedMediaGalleryEditDetailsSection">
        <element name="title" type="input" selector="#title"/>
        <element name="fileName" type="text" selector="#path"/>
        <element name="description" type="textarea" selector="#description"/>
        <element name="newKeyword" type="input" selector="[data-ui-id='keyword']"/>
        <element name="addNewKeyword" type="input" selector="[data-ui-id='add-keyword']"/>
        <element name="removeSelectedKeyword" type="button" selector="//span[contains(text(), '{{keyword}}')]/following-sibling::button[@data-action='remove-selected-item']" parameterized="true"/>
        <element name="cancel" type="button" selector="#image-details-action-cancel"/>
        <element name="save" type="button" selector="#image-details-action-save" timeout="30"/>
        <element name="modalTitle" type="text" selector="//aside[contains(@class, 'media-gallery-edit-image-details') and contains(@class, '_show')]//h1[contains(., 'Edit Image')]"/>
    </section>
</sections>
