From 9b817676e4ad623a875accaa26097669a9bd2c7c Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 31 Jan 2023 20:24:33 -0800 Subject: [PATCH] debug --- lib/src/flutter/steps/tap_widget_with_text_step.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/flutter/steps/tap_widget_with_text_step.dart b/lib/src/flutter/steps/tap_widget_with_text_step.dart index 41ed177..fb32d14 100644 --- a/lib/src/flutter/steps/tap_widget_with_text_step.dart +++ b/lib/src/flutter/steps/tap_widget_with_text_step.dart @@ -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); },