Class WebFlow<TComponent>
A typed, sequential interaction plan whose individual actions retain normal tracing and waits.
public sealed class WebFlow<TComponent> where TComponent : WebComponent
Type Parameters
TComponent
- Inheritance
-
WebFlow<TComponent>
- Inherited Members
- Extension Methods
Methods
Check(Func<TComponent, WebElement>, bool)
public WebFlow<TComponent> Check(Func<TComponent, WebElement> element, bool isChecked = true)
Parameters
elementFunc<TComponent, WebElement>isCheckedbool
Returns
- WebFlow<TComponent>
Click(Func<TComponent, WebElement>)
public WebFlow<TComponent> Click(Func<TComponent, WebElement> element)
Parameters
elementFunc<TComponent, WebElement>
Returns
- WebFlow<TComponent>
Do(Func<TComponent, CancellationToken, ValueTask>)
public WebFlow<TComponent> Do(Func<TComponent, CancellationToken, ValueTask> interaction)
Parameters
interactionFunc<TComponent, CancellationToken, ValueTask>
Returns
- WebFlow<TComponent>
Fill(Func<TComponent, WebElement>, string)
public WebFlow<TComponent> Fill(Func<TComponent, WebElement> element, string value)
Parameters
elementFunc<TComponent, WebElement>valuestring
Returns
- WebFlow<TComponent>
Press(Func<TComponent, WebElement>, WebKey)
public WebFlow<TComponent> Press(Func<TComponent, WebElement> element, WebKey key)
Parameters
elementFunc<TComponent, WebElement>keyWebKey
Returns
- WebFlow<TComponent>
RunAsync(CancellationToken)
public ValueTask RunAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
Select(Func<TComponent, WebElement>, string)
public WebFlow<TComponent> Select(Func<TComponent, WebElement> element, string value)
Parameters
elementFunc<TComponent, WebElement>valuestring
Returns
- WebFlow<TComponent>