AdminNewAttributePanelSection.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
  10. <section name="AdminNewAttributePanel">
  11. <element name="useInSearch" type="select" selector="#is_searchable"/>
  12. <element name="visibleInAdvancedSearch" type="select" selector="#is_visible_in_advanced_search"/>
  13. <element name="comparableOnStorefront" type="select" selector="#is_comparable"/>
  14. <element name="useInLayeredNavigation" type="select" selector="#is_filterable"/>
  15. <element name="visibleOnCatalogPagesOnStorefront" type="select" selector="#is_visible_on_front"/>
  16. <element name="useInProductListing" type="select" selector="#used_in_product_listing"/>
  17. <element name="usedForStoringInProductListing" type="select" selector="#used_for_sort_by"/>
  18. <element name="storefrontPropertiesTab" selector="#front_fieldset-wrapper"/>
  19. <element name="storefrontPropertiesTitle" selector="//span[text()='Storefront Properties']"/>
  20. <element name="container" type="text" selector="#create_new_attribute"/>
  21. <element name="saveAttribute" type="button" selector="#save"/>
  22. <element name="newAttributeIFrame" type="iframe" selector="create_new_attribute_container"/>
  23. <element name="defaultLabel" type="input" selector="input[name='frontend_label[0]']"/>
  24. <element name="inputType" type="select" selector="select[name='frontend_input']" timeout="30"/>
  25. <element name="valuesRequired" type="select" selector="select#is_required"/>
  26. <element name="addOption" type="button" selector="#add_new_option_button"/>
  27. <element name="isDefault" type="radio" selector="[data-role='options-container'] tr:nth-of-type({{row}}) input[name='default[]']" parameterized="true"/>
  28. <element name="optionAdminValue" type="input" selector="[data-role='options-container'] input[name='option[value][option_{{row}}][0]']" parameterized="true"/>
  29. <element name="optionDefaultStoreValue" type="input" selector="[data-role='options-container'] input[name='option[value][option_{{row}}][1]']" parameterized="true"/>
  30. <element name="deleteOption" type="button" selector="#delete_button_option_{{row}}" parameterized="true"/>
  31. <element name="deleteOptionByName" type="button" selector="//*[contains(@value, '{{arg}}')]/../following-sibling::td[contains(@id, 'delete_button_container')]/button" parameterized="true"/>
  32. </section>
  33. </sections>