Docs · API reference · Motus.Abstractions

BrowserFailure Class#

Tells failures caused by the browser going away from failures the test found.

public static class BrowserFailure

Inheritance System.Object → BrowserFailure

Methods#

IsBrowserLost(Exception) Method#

True when the exception says the connection to the browser was lost.

public static bool IsBrowserLost(System.Exception? exception);

Parameters#

exception System.Exception

Returns#

System.Boolean

Remarks#

A test that ended this way reached no verdict about the page: it was interrupted, and what it reports is the connection closing rather than anything it set out to check. That is the one kind of failure worth running again, and the reason it is worth telling apart from an assertion that simply did not hold.