This commit is contained in:
Sarah Jamie Lewis 2023-01-31 20:24:33 -08:00
parent 46b9efda9f
commit 9b817676e4
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ StepDefinitionGeneric tapWidgetWithTextStep() {
RegExp(
r'I tap the (?:button|element|label|field|text|widget) that contains the text {string}$'),
(input1, context) async {
final finder = context.world.appDriver.findBy(input1, FindType.text).last;
final finder = context.world.appDriver.findBy(input1, FindType.text);
print("to tap: $finder");
await context.world.appDriver.scrollIntoView(finder);
await context.world.appDriver.tap(finder);
},