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

Method setPort

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

* Sets the port to start the server on. * * @param {number} port The port to use, or 0 for any free port. * @return {!DriverService.Builder} A self reference. * @throws {Error} If an invalid port is specified.

(port)

Source from the content-addressed store, hash-verified

389 * @throws {Error} If an invalid port is specified.
390 */
391 setPort(port) {
392 if (port < 0) {
393 throw Error(`port must be >= 0: ${port}`)
394 }
395 this.options_.port = port
396 return this
397 }
398
399 /**
400 * Defines the environment to start the server under. This setting will be

Callers 1

uri.jsFile · 0.80

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected