Add semantic label finders (#29342)

* Add semantic label finders
This commit is contained in:
Dan Field
2019-03-18 20:32:03 -07:00
committed by GitHub
parent 79e3bf4ad3
commit 5e27ebbe8d
6 changed files with 206 additions and 0 deletions

View File

@@ -939,6 +939,9 @@ class CommonFinders {
/// Finds widgets with a tooltip with the given [message].
SerializableFinder byTooltip(String message) => ByTooltipMessage(message);
/// Finds widgets with the given semantics [label].
SerializableFinder bySemanticsLabel(Pattern label) => BySemanticsLabel(label);
/// Finds widgets whose class name matches the given string.
SerializableFinder byType(String type) => ByType(type);