MCPcopy Create free account
hub / github.com/appium/appium / constructor

Method constructor

packages/base-driver/lib/protocol/errors.ts:400–407  ·  view source on GitHub ↗
(message: string = '', cause?: Error)

Source from the content-addressed store, hash-verified

398
399export class XPathLookupError extends ProtocolError {
400 constructor(message: string = '', cause?: Error) {
401 super(
402 message || 'An error occurred while searching for an element by XPath.',
403 XPathLookupError.w3cStatus(),
404 XPathLookupError.error(),
405 cause,
406 );
407 }
408 static w3cStatus() {
409 return HTTPStatusCodes.BAD_REQUEST;
410 }

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
w3cStatusMethod · 0.45

Tested by

no test coverage detected