An expectation for checking that an element becomes stale and is replaced by a new one.
public static Func<AvaloniaDriver, AvaloniaElement> RefreshedElement(By locator, AvaloniaElement oldElement)
The locator to find the new element.
The old element that should become stale.