(message: string = '', cause?: Error)
| 398 | |
| 399 | export 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 | } |