Class WebBackendErrors

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

The failure messages both backends report for the shared resolution and actionability contract, so the same situation reads the same whichever backend produced it. A hand-written backend composes them so its failures stay indistinguishable from the shipped ones.

public static class WebBackendErrors
Inheritance
WebBackendErrors
Inherited Members

Methods

MultipleMatch(WebLocator, string, int?)

More than one element where a single-element operation requires at most one.

public static WebElementResolutionException MultipleMatch(WebLocator locator, string componentPath, int? count)

Parameters

locator WebLocator
componentPath string
count int?

Returns

WebElementResolutionException

NotActionable(WebElementReference, TimeSpan, string?)

An action that never became actionable, with the backend's last observation when it has one.

public static WebActionabilityException NotActionable(WebElementReference element, TimeSpan timeout, string? observation = null)

Parameters

element WebElementReference
timeout TimeSpan
observation string

Returns

WebActionabilityException

NotPresent(WebElementReference, TimeSpan)

A read of an element that never appeared.

public static WebElementResolutionException NotPresent(WebElementReference element, TimeSpan timeout)

Parameters

element WebElementReference
timeout TimeSpan

Returns

WebElementResolutionException