SoftLocatorExpect
Namespace: E2E
public sealed class SoftLocatorExpectThe 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
Properties
Section titled “Properties”public SoftLocatorExpect Not { get; }Inverts the matcher, as Not. A failure is still kept, not thrown.
Value: SoftLocatorExpect
Methods
Section titled “Methods”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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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