Class MuiAutocompleteTagLocators
- java.lang.Object
-
- com.github.grossopa.selenium.component.mui.lab.MuiAutocompleteTagLocators
-
public class MuiAutocompleteTagLocators extends Object
The locators forMuiAutocompleteTag- Since:
- 1.3
- Author:
- Jack Yin
-
-
Constructor Summary
Constructors Constructor Description MuiAutocompleteTagLocators(java.util.function.Function<MuiAutocompleteTag,String> labelFinder, java.util.function.Function<MuiAutocompleteTag,String> valueFinder, org.openqa.selenium.By deleteButtonLocator)Constructs the instance with label, value and deleteButton locators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MuiAutocompleteTagLocatorschipLocators(MuiConfig config)Creates an autocomplete tag locators for locating the Chip as tag item.org.openqa.selenium.BygetDeleteButtonLocator()Gets the delete button locatorjava.util.function.Function<MuiAutocompleteTag,String>getLabelFinder()Gets the label finder for locating the label element and find the label valuejava.util.function.Function<MuiAutocompleteTag,String>getValueFinder()Gets the value finder for locating the value element and find the value
-
-
-
Constructor Detail
-
MuiAutocompleteTagLocators
public MuiAutocompleteTagLocators(java.util.function.Function<MuiAutocompleteTag,String> labelFinder, java.util.function.Function<MuiAutocompleteTag,String> valueFinder, org.openqa.selenium.By deleteButtonLocator)
Constructs the instance with label, value and deleteButton locators.- Parameters:
labelFinder- the label finder for locating the label element and find the label valuevalueFinder- the value finder for locating the value element and find the valuedeleteButtonLocator- the delete button locator
-
-
Method Detail
-
getLabelFinder
public java.util.function.Function<MuiAutocompleteTag,String> getLabelFinder()
Gets the label finder for locating the label element and find the label value- Returns:
- the label finder function
-
getValueFinder
public java.util.function.Function<MuiAutocompleteTag,String> getValueFinder()
Gets the value finder for locating the value element and find the value- Returns:
- the value finder function
-
getDeleteButtonLocator
public org.openqa.selenium.By getDeleteButtonLocator()
Gets the delete button locator- Returns:
- the delete button locator
-
chipLocators
public static MuiAutocompleteTagLocators chipLocators(MuiConfig config)
Creates an autocomplete tag locators for locating the Chip as tag item.- Parameters:
config- the mui configuration- Returns:
- create
MuiAutocompleteTagLocatorsfor locating the Chip as tag item
-
-