Provides expected conditions for use with DriverWait.Until(). Similar to Selenium/Appium ExpectedConditions.
public static class ExpectedConditions
// Wait for element to be visible
driver.Wait.Until(ExpectedConditions.ElementIsVisible(By.Id("loading")));
// Wait for element to be clickable
var button = driver.Wait.Until(ExpectedConditions.ElementToBeClickable(By.Id("submit")));
// Wait for text to appear
driver.Wait.Until(ExpectedConditions.TextToBePresentInElement(By.Id("result"), "Success"));
kind:method, kind:property, kind:ctor. Press Esc to clear.And(Func<AvaloniaDriver, Boolean>[])Combines conditions with AND logic.AttributeContains(By, String, String)An expectation for checking that an element's attribute contains the specified value.AttributeToBe(By, String, String)An expectation for checking that an element's attribute matches the expected value.AttributeToBeNotEmpty(By, String)An expectation for checking that an element's attribute is not empty.CustomCondition(Func<AvaloniaDriver, Boolean>, String)Creates a custom condition that waits for a specific state.CustomElementCondition(Func<AvaloniaDriver, AvaloniaElement?>)Creates a custom condition that returns an element.ElementExists(By)An expectation for checking that an element is present in the visual tree.ElementIsVisible(By)An expectation for checking that an element is present and visible.ElementSelectionStateToBe(By, Boolean)An expectation for checking that an element's selection state matches the expected state.ElementToBeClickable(By)An expectation for checking that an element is present, visible, and enabled.ElementToBeDisabled(By)An expectation for checking that an element is disabled.ElementToBeEnabled(By)An expectation for checking that an element is enabled.ElementToBeFocused(By)An expectation for checking that an element has focus.ElementToBeSelected(By)An expectation for checking that an element is selected.InvisibilityOf(AvaloniaElement)An expectation for checking that an element is invisible or not present.InvisibilityOfElement(By)An expectation for checking that an element is invisible or not present.Not(Func<AvaloniaDriver, Boolean>)Negates a condition.NumberOfElementsToBe(By, Int32)An expectation for checking that the number of elements matches the expected count.NumberOfElementsToBeLessThan(By, Int32)An expectation for checking that the number of elements is at most the expected count.NumberOfElementsToBeMoreThan(By, Int32)An expectation for checking that the number of elements is at least the expected count.Or(Func<AvaloniaDriver, Boolean>[])Combines conditions with OR logic.PresenceOfAllElements(By)An expectation for checking that at least one element is present.RefreshedElement(By, AvaloniaElement)An expectation for checking that an element becomes stale and is replaced by a new one.StalenessOf(AvaloniaElement)An expectation for checking that an element is no longer attached to the visual tree.TextToBe(By, String)An expectation for checking that an element's text matches exactly.TextToBeNotEmpty(By)An expectation for checking that an element's text is not empty.TextToBePresentInElement(By, String)An expectation for checking that an element's text contains the specified text.TextToMatch(By, String)An expectation for checking that an element's text matches a regex pattern.TitleContains(String)An expectation for checking that the window title contains text.TitleIs(String)An expectation for checking the window title.VisibilityOfAllElements(By)An expectation for checking that all elements matching the locator are visible.