Exemplo n.º 1
0
 /// <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);
Exemplo n.º 2
0
 /// <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());