<?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="AdminCreateUserSection">
        <element name="system" type="input" selector="#menu-magento-backend-system"/>
        <element name="allUsers" type="input" selector="//span[contains(text(), 'All Users')]"/>
        <element name="create" type="input" selector="#add"/>
        <element name="usernameTextField" type="input" selector="#user_username"/>
        <element name="firstNameTextField" type="input" selector="#user_firstname"/>
        <element name="lastNameTextField" type="input" selector="#user_lastname"/>
        <element name="emailTextField" type="input" selector="#user_email"/>
        <element name="passwordTextField" type="input" selector="#user_password"/>
        <element name="pwConfirmationTextField" type="input" selector="#user_confirmation"/>
        <element name="currentPasswordField" type="input" selector="#user_current_password"/>
        <element name="expireAtField" type="input" selector="#user_expires_at"/>
        <element name="createdRoleInUserPage" type="text" selector="//tr//td[contains(text(), '{{arg}}')]" parameterized="true"/>
        <element name="userInfoTab" type="button" selector="#page_tabs_main_section"/>
        <element name="userRoleTab" type="button" selector="#page_tabs_roles_section"/>
        <element name="saveButton" type="button" selector="#save"/>
        <element name="createAnAccountButton" type="button" selector="//div[contains(@class, 'block-new-customer')]//a/span[contains(.,'Create an Account')]"/>
        <element name="createAnAccountButtonForCustomer" type="button" selector="//*[@class='block-content']//a[@class='action create primary']/span[contains(.,'Create an Account')]"/>
    </section>
</sections>
