WaitHelper Class

Definition

Provides utilities for waiting on specific conditions. More advanced than ExpectedConditions with support for custom predicates.

public class WaitHelper

Examples

var wait = new WaitHelper(TimeSpan.FromSeconds(10));

// Wait for element to be visible
await wait.UntilAsync(() => element.IsVisible);

// Wait for element with custom polling
var found = await wait.UntilNotNullAsync(() => FindElement("button"));

// Wait with progress callback
await wait.UntilAsync(() => IsComplete(), 
    onProgress: remaining => Console.WriteLine($"Time remaining: {remaining}"));
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (2)

Methods (20)