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

Method build

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

* Creates a new DriverService using this instance's current configuration. * * @return {!DriverService} A new driver service.

()

Source from the content-addressed store, hash-verified

435 * @return {!DriverService} A new driver service.
436 */
437 build() {
438 let port = this.options_.port || portprober.findFreePort()
439 let args = Promise.resolve(port).then((port) => {
440 return this.options_.args.concat('--port=' + port)
441 })
442
443 let options =
444 /** @type {!ServiceOptions} */
445 (Object.assign({}, this.options_, { args, port }))
446 return new DriverService(this.exe_, options)
447 }
448}
449
450/**

Callers 15

headless.jsFile · 0.45
google_search.jsFile · 0.45
logging.jsFile · 0.45
chrome_android.jsFile · 0.45
window_test.jsFile · 0.45
createDriverFunction · 0.45
GetBrowserForTestsFunction · 0.45

Calls 2

findFreePortMethod · 0.80
concatMethod · 0.45

Tested by 1

testFunction · 0.36