MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / computeErrorMessage

Function computeErrorMessage

packages/webdriver/src/request/error.ts:12–20  ·  view source on GitHub ↗

* return timeout error with information about the executing command on which the test hangs

()

Source from the content-addressed store, hash-verified

10 * return timeout error with information about the executing command on which the test hangs
11 */
12 computeErrorMessage() {
13 const cmdName = this.#getExecCmdName()
14 const cmdArgs = this.#getExecCmdArgs(this.opts)
15
16 const cmdInfoMsg = `when running "${cmdName}" with method "${this.opts.method}"`
17 const cmdArgsMsg = cmdArgs ? ` and args ${cmdArgs}` : ''
18
19 return `WebDriverError: ${this.message} ${cmdInfoMsg}${cmdArgsMsg}`
20 }
21
22 #getExecCmdName(): string {
23 const { href } = this.url

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…