Retries
Retry Methods
Examples
// Some errors can be raised when clicking a control if,
// for example, it is not visible at the time.
Retry.Do(() => this.MyPageObject.MyControl.Click());// This action would normally throw an exception on certain scenarios.
// For example, if the collection does not contain the searched control
// or the control is found but not immediately clickable.
Retry.Do(() => this.MyPageObject.MyControlCollection.Controls
.First(control => control.Text == "Item 1").Click());Last updated
Was this helpful?