/// <summary> /// Try wait until the page object is visible on screen. /// </summary> /// <param name="expectation">Expectation predicate.</param> /// <param name="timeout">The timeout.</param> /// <returns>Whether the page object is visible on screen.</returns> public bool TryWaitFor(Predicate <T> expectation, TimeSpan timeout) => TryWait.For(() => expectation(Value), timeout);
/// <summary> /// Try wait until the page object is visible on screen. /// </summary> /// <param name="expectation">Expectation predicate.</param> /// <returns>Whether the page object is visible on screen.</returns> public bool TryWaitFor(Predicate <T> expectation) => TryWait.For(() => expectation(Value), waitTimeout());