MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / kill

Method kill

javascript/selenium-webdriver/remote/index.js:284–292  ·  view source on GitHub ↗

* Stops the service if it is not currently running. This function will kill * the server immediately. To synchronize with the active control flow, use * #stop(). * @return {!Promise} A promise that will be resolved when the server has been * stopped.

()

Source from the content-addressed store, hash-verified

282 * stopped.
283 */
284 kill() {
285 if (!this.address_ || !this.command_) {
286 return Promise.resolve() // Not currently running.
287 }
288 let cmd = this.command_
289 this.address_ = null
290 this.command_ = null
291 return cmd.then((c) => c.kill('SIGTERM'))
292 }
293}
294
295/**

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected