From 09c42d5958b5dbce29430061a8f785c96cc4c446 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 Aug 2025 12:18:38 +0000 Subject: [PATCH 1/2] Initial plan From 7f946134c0a2be7b4b77c07d6383d82eb5b56b02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 Aug 2025 12:24:39 +0000 Subject: [PATCH 2/2] Fix WaitForTextToBePresentInElement to throw TimeoutException instead of returning false Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com> --- src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs b/src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs index 2c7346d..8c45e0b 100644 --- a/src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs +++ b/src/Plugin.Maui.UITestHelpers.Appium/HelperExtensions.cs @@ -814,7 +814,7 @@ public static bool WaitForTextToBePresentInElement(this IApp app, string automat { Debug.WriteLine($">>>>> {elapsed} ticks elapsed, timeout value is {timeout.Value.Ticks}"); - return false; + throw new TimeoutException($"Timed out waiting for text '{text}' to be present in element with automation id '{automationId}'."); } Task.Delay(retryFrequency.Milliseconds).Wait();