Skip to content

SoftLocatorExpect

Namespace: E2E

public sealed class SoftLocatorExpect

The locator matchers of LocatorExpect, but an ASSERTION_FAILED is kept on the session instead of thrown, and the test body runs on. Any other error, such as STRICT_MODE, still throws.

Inheritance: object

View source

public SoftLocatorExpect Not { get; }

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

Value: SoftLocatorExpect

View source

ToBeAttachedAsync(bool, TimeSpan?, CancellationToken)

Section titled “ToBeAttachedAsync(bool, TimeSpan?, CancellationToken)”
public Task ToBeAttachedAsync(bool attached = true, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
attached bool
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeCheckedAsync(bool, TimeSpan?, CancellationToken)

Section titled “ToBeCheckedAsync(bool, TimeSpan?, CancellationToken)”
public Task ToBeCheckedAsync(bool isChecked = true, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
isChecked bool
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeDisabledAsync(TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeEnabledAsync(bool, TimeSpan?, CancellationToken)

Section titled “ToBeEnabledAsync(bool, TimeSpan?, CancellationToken)”
public Task ToBeEnabledAsync(bool enabled = true, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
enabled bool
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeExpandedAsync(TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeFocusedAsync(TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeHiddenAsync(TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeSelectedAsync(TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToBeVisibleAsync(bool, TimeSpan?, CancellationToken)

Section titled “ToBeVisibleAsync(bool, TimeSpan?, CancellationToken)”
public Task ToBeVisibleAsync(bool visible = true, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
visible bool
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToContainTextAsync(TextMatch, bool?, TimeSpan?, CancellationToken)

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

Parameters

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

Returns: Task

View source

ToContainTextAsync(IReadOnlyList<TextMatch>, bool?, TimeSpan?, CancellationToken)

Section titled “ToContainTextAsync(IReadOnlyList<TextMatch>, bool?, TimeSpan?, CancellationToken)”
public Task ToContainTextAsync(IReadOnlyList<TextMatch> expected, bool? ignoreCase = null, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
expected IReadOnlyList<TextMatch>
ignoreCase bool?
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveAccessibleNameAsync(TextMatch, bool?, TimeSpan?, CancellationToken)

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

Parameters

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

Returns: Task

View source

ToHaveAttributeAsync(string, TextMatch, bool?, TimeSpan?, CancellationToken)

Section titled “ToHaveAttributeAsync(string, TextMatch, bool?, TimeSpan?, CancellationToken)”
public Task ToHaveAttributeAsync(string name, TextMatch value, bool? ignoreCase = null, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
name string
value TextMatch
ignoreCase bool?
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveAttributeAsync(string, TimeSpan?, CancellationToken)

Section titled “ToHaveAttributeAsync(string, TimeSpan?, CancellationToken)”
public Task ToHaveAttributeAsync(string name, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
name string
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveCountAsync(int, TimeSpan?, CancellationToken)

Section titled “ToHaveCountAsync(int, TimeSpan?, CancellationToken)”
public Task ToHaveCountAsync(int count, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
count int
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveScreenshotAsync(ScreenshotOptions, string?)

Section titled “ToHaveScreenshotAsync(ScreenshotOptions, string?)”
public Task ToHaveScreenshotAsync(ScreenshotOptions options, string? callerFile = null)

Parameters

Name Type Description
options ScreenshotOptions
callerFile string

Returns: Task

View source

ToHaveScreenshotAsync(string?, ScreenshotOptions?, string?)

Section titled “ToHaveScreenshotAsync(string?, ScreenshotOptions?, string?)”
public Task ToHaveScreenshotAsync(string? name = null, ScreenshotOptions? options = null, string? callerFile = null)

Parameters

Name Type Description
name string
options ScreenshotOptions
callerFile string

Returns: Task

View source

ToHaveTextAsync(TextMatch, bool?, TimeSpan?, CancellationToken)

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

Parameters

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

Returns: Task

View source

ToHaveTextAsync(IReadOnlyList<TextMatch>, bool?, TimeSpan?, CancellationToken)

Section titled “ToHaveTextAsync(IReadOnlyList<TextMatch>, bool?, TimeSpan?, CancellationToken)”
public Task ToHaveTextAsync(IReadOnlyList<TextMatch> expected, bool? ignoreCase = null, TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

Name Type Description
expected IReadOnlyList<TextMatch>
ignoreCase bool?
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source

ToHaveValueAsync(TextMatch, TimeSpan?, CancellationToken)

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

Parameters

Name Type Description
expected TextMatch
timeout TimeSpan?
cancellationToken CancellationToken

Returns: Task

View source