Class MuiSelectConfig.MuiSelectConfigBuilder

    • Constructor Detail

      • MuiSelectConfigBuilder

        public MuiSelectConfigBuilder​(org.openqa.selenium.By optionsLocator)
        Constructs an instance with options locator.
        Parameters:
        optionsLocator - the locator for locating the popup options. MuiSelect will first locate the popover element then * use the locator for finding the option elements. Use By.className("MuiMenuItem-root") if the MuiSelect code is copied from Material UI official website.
    • Method Detail

      • optionValueAttribute

        public MuiSelectConfig.MuiSelectConfigBuilder optionValueAttribute​(@Nullable
                                                                           String optionValueAttribute)
        Sets the value attribute of each option item
        Parameters:
        optionValueAttribute - the option value attribute, by default it is "data-value".
        Returns:
        this builder instance
      • multiple

        public MuiSelectConfig.MuiSelectConfigBuilder multiple​(boolean isMultiple)
        As of current Material UI version there is no flags indicates whether the component is single or multiple select. So developers should set their own isMultiple flag in the configuration.
        Parameters:
        isMultiple - whether the select component allows multiple selection, default value is false.
        Returns:
        this builder instance