AdminCreateRoleSection.xml 1.53 KB
<?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="AdminCreateRoleSection">
        <element name="create" type="button" selector="#add"/>
        <element name="name" type="button" selector="#role_name"/>
        <element name="password" type="input" selector="#current_password"/>
        <element name="roleResources" type="button" selector="#role_info_tabs_account"/>
        <element name="roleResource" type="button" selector="#gws_is_all"/>
        <element name="resourceValue" type="button" selector="//*[text()='{{arg1}}']" parameterized="true"/>
        <element name="roleScope" type="button" selector="#all"/>
        <element name="scopeValue" type="button" selector="//select[@id='all']/*[text()='{{arg2}}']" parameterized="true"/>
        <element name="website" type="checkbox" selector="//*[contains(text(), '{{arg3}}')]" parameterized="true"/>
        <element name="save" type="button" selector="//button[@title='Save Role']"/>
        <element name="roleNameFilterTextField" type="input" selector="#permissionsUserRolesGrid_filter_role_name"/>
        <element name="searchButton" type="button" selector=".admin__data-grid-header button[title=Search]"/>
        <element name="searchResultFirstRow" type="text" selector=".data-grid>tbody>tr"/>
    </section>
</sections>