| D | UiSelector.java | 26 import java.util.regex.Pattern; 126 public @NonNull UiSelector textMatches(@NonNull String regex) { in textMatches() argument 127 requireNonNull(regex, "regex cannot be null"); in textMatches() 128 return buildSelector(SELECTOR_TEXT_REGEX, Pattern.compile(regex, Pattern.DOTALL)); in textMatches() 178 public @NonNull UiSelector classNameMatches(@NonNull String regex) { in classNameMatches() argument 179 requireNonNull(regex, "regex cannot be null"); in classNameMatches() 180 return buildSelector(SELECTOR_CLASS_REGEX, Pattern.compile(regex)); in classNameMatches() 230 public @NonNull UiSelector descriptionMatches(@NonNull String regex) { in descriptionMatches() argument 231 requireNonNull(regex, "regex cannot be null"); in descriptionMatches() 232 return buildSelector(SELECTOR_DESCRIPTION_REGEX, Pattern.compile(regex, Pattern.DOTALL)); in descriptionMatches() [all …]
|