MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / onError

Function onError

javascript/selenium-webdriver/http/util.js:80–97  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

78 }
79
80 function onError(e) {
81 // Some servers don't support the status command. If they are able to
82 // response with an error, then can consider the server ready.
83 if (e instanceof error.UnsupportedOperationError) {
84 resolve({})
85 return
86 }
87
88 if (Date.now() - start > timeout) {
89 reject(Error('Timed out waiting for the WebDriver server at ' + url))
90 } else {
91 setTimeout(function () {
92 if (!done) {
93 checkServerStatus()
94 }
95 }, 50)
96 }
97 }
98 })
99}
100

Callers 2

onResponseFunction · 0.85
sendRequestFunction · 0.85

Calls 6

ErrorFunction · 0.85
checkServerStatusFunction · 0.85
testUrlFunction · 0.85
nowMethod · 0.80
resolveFunction · 0.70
rejectFunction · 0.70

Tested by

no test coverage detected