You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/TestUtils/src/UITest.Appium/HelperExtensions.cs
+29
Original file line number
Diff line number
Diff line change
@@ -651,6 +651,24 @@ public static IReadOnlyCollection<string> GetAlertText(this IUIElement alertElem
651
651
returnresults;
652
652
}
653
653
654
+
/// <summary>
655
+
/// Wait function that will repeatly query the app until any matching element is found.
656
+
/// Throws a TimeoutException if no element is found within the time limit.
657
+
/// </summary>
658
+
/// <param name="app">Represents the main gateway to interact with an app.</param>
659
+
/// <param name="marked">Collection of target Elements.</param>
660
+
/// <param name="timeoutMessage">The message used in the TimeoutException.</param>
661
+
/// <param name="timeout">The TimeSpan to wait before failing.</param>
662
+
/// <param name="retryFrequency">The TimeSpan to wait between each query call to the app.</param>
663
+
/// <param name="postTimeout">The final TimeSpan to wait after the element has been found.</param>
664
+
publicstaticIUIElementWaitForAnyElement(thisIAppapp,string[]marked,stringtimeoutMessage="Timed out waiting for element...",TimeSpan?timeout=null,TimeSpan?retryFrequency=null,TimeSpan?postTimeout=null)
0 commit comments