Skip to content

SoftBrowserExpect

Namespace: E2E

public sealed class SoftBrowserExpect

The browser matchers of BrowserExpect, but an ASSERTION_FAILED is kept on the session instead of thrown, as SoftLocatorExpect does.

Inheritance: object

View source

public SoftBrowserExpect Not { get; }

Inverts the matcher, as Not. A failure is still kept, not thrown.

Value: SoftBrowserExpect

View source

ToHaveClassAsync(Locator, TextMatch, TimeSpan?, CancellationToken)

Section titled “ToHaveClassAsync(Locator, TextMatch, TimeSpan?, CancellationToken)”
public Task ToHaveClassAsync(Locator target, TextMatch expected, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
target Locator
expected TextMatch
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveTitleAsync(TextMatch, TimeSpan?, CancellationToken)

Section titled “ToHaveTitleAsync(TextMatch, TimeSpan?, CancellationToken)”
public Task ToHaveTitleAsync(TextMatch expected, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
expected TextMatch
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveURLAsync(string, bool?, TimeSpan?, CancellationToken)

Section titled “ToHaveURLAsync(string, bool?, TimeSpan?, CancellationToken)”
public Task ToHaveURLAsync(string expected, bool? ignoreCase = null, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
expected string
ignoreCase bool?
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveURLAsync(Regex, bool?, TimeSpan?, CancellationToken)

Section titled “ToHaveURLAsync(Regex, bool?, TimeSpan?, CancellationToken)”
public Task ToHaveURLAsync(Regex expected, bool? ignoreCase = null, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
expected Regex
ignoreCase bool?
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source