isScriptTimeoutError
Whether an error is a WebDriver script timeout — the W3C error a driver would raise if it enforced timeouts.script.
Matched on the message rather than on a type, because the error arrives as a generic WebDriverError whose only distinguishing mark is the W3C error code in its text.
This driver never raises it. UiAutomator2 was measured accepting the capability, reporting it back, and enforcing nothing. The predicate is kept because it costs nothing, it is the right translation if a future driver does enforce the capability, and it keeps one error covering one condition on both transports — but the Android cap is enforced Node-side, and this is not what enforces it.
Import:
import { isScriptTimeoutError } from 'obsidian-integration-testing';Signature:
function isScriptTimeoutError(error: unknown): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
error | unknown | The error thrown by the transport. |
Returns: boolean — true when the error is a script timeout.