Skip to content

Commit b99782b

Browse files
committed
Update HelperExtensions.cs
1 parent ac7c22a commit b99782b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/TestUtils/src/UITest.Appium/HelperExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,8 +887,7 @@ public static bool WaitForTextToBePresentInElement(this IApp app, string automat
887887
if (elapsed >= timeout.Value.Ticks)
888888
{
889889
Debug.WriteLine($">>>>> {elapsed} ticks elapsed, timeout value is {timeout.Value.Ticks}");
890-
891-
return false;
890+
throw new TimeoutException($"Timed out waiting for element {automationId} to contain {text}");
892891
}
893892

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

0 commit comments

Comments
 (0)