Waits for an element to be present.
public AvaloniaElement ForElement(By by, TimeSpan? timeout = default(TimeSpan? ))
The locator.
Optional custom timeout.