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

Method defineCommand

javascript/selenium-webdriver/lib/http.js:436–441  ·  view source on GitHub ↗

* Defines a new command for use with this executor. When a command is sent, * the path will be preprocessed using the command's parameters; any * path segments prefixed with ":" will be replaced by the parameter of the * same name. For example, given "/person/:name" and the paramete

(name, method, path)

Source from the content-addressed store, hash-verified

434 * "/path/:variable/segment".
435 */
436 defineCommand(name, method, path) {
437 if (!this.customCommands_) {
438 this.customCommands_ = new Map()
439 }
440 this.customCommands_.set(name, { method, path })
441 }
442
443 /** @override */
444 async execute(command) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected