<?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="StorefrontCustomerCreateFormSection">
        <element name="firstnameField" type="input" selector="#firstname"/>
        <element name="lastnameField" type="input" selector="#lastname"/>
        <element name="lastnameLabel" type="text" selector="//label[@for='lastname']"/>
        <element name="signUpForNewsletter" type="checkbox" selector="//div/input[@name='is_subscribed']"/>
        <element name="emailField" type="input" selector="#email_address"/>
        <element name="passwordField" type="input" selector="#password"/>
        <element name="confirmPasswordField" type="input" selector="#password-confirmation"/>
        <element name="createAccountButton" type="button" selector="button.action.submit.primary" timeout="30"/>
    </section>
    <section name="StoreFrontCustomerAdvancedAttributesSection">
        <element name="textFieldAttribute" type="input" selector="//input[@id='{{var}}']" parameterized="true" />
        <element name="textAreaAttribute" type="input" selector="//textarea[@id='{{var}}']" parameterized="true" />
        <element name="multiLineFirstAttribute" type="input" selector="//input[@id='{{var}}_0']" parameterized="true" />
        <element name="multiLineSecondAttribute" type="input" selector="//input[@id='{{var}}_1']" parameterized="true" />
        <element name="datedAttribute" type="input" selector="//input[@id='{{var}}']" parameterized="true" />
        <element name="dropDownAttribute" type="select" selector="//select[@id='{{var}}']" parameterized="true" />
        <element name="dropDownOptionAttribute" type="text" selector="//*[@id='{{var}}']/option[2]" parameterized="true" />
        <element name="multiSelectFirstOptionAttribute" type="text" selector="//select[@id='{{var}}']/option[3]" parameterized="true" />
        <element name="yesNoAttribute" type="select" selector="//select[@id='{{var}}']" parameterized="true" />
        <element name="yesNoOptionAttribute" type="select" selector="//select[@id='{{var}}']/option[2]" parameterized="true" />
        <element name="selectedOption" type="text" selector="//select[@id='{{var}}']/option[@selected='selected']" parameterized="true"/>
        <element name="attributeLabel" type="text" selector="//span[text()='{{attributeLabel}}']" parameterized="true"/>
    </section>
</sections>
