Skip to content

Commit 7f94613

Browse files
Copilotjfversluis
andcommitted
Fix WaitForTextToBePresentInElement to throw TimeoutException instead of returning false
Co-authored-by: jfversluis <[email protected]>
1 parent 09c42d5 commit 7f94613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ public static bool WaitForTextToBePresentInElement(this IApp app, string automat
814814
{
815815
Debug.WriteLine($">>>>> {elapsed} ticks elapsed, timeout value is {timeout.Value.Ticks}");
816816

817-
return false;
817+
throw new TimeoutException($"Timed out waiting for text '{text}' to be present in element with automation id '{automationId}'.");
818818
}
819819

820820
Task.Delay(retryFrequency.Milliseconds).Wait();

0 commit comments

Comments
 (0)