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

Function getHostName

javascript/selenium-webdriver/lib/test/fileserver.js:338–341  ·  view source on GitHub ↗

* Detects the hostname. * @return {string} The detected hostname or 'localhost' if not found.

()

Source from the content-addressed store, hash-verified

336 * @return {string} The detected hostname or 'localhost' if not found.
337 */
338function getHostName() {
339 const hostnameFromEnv = process.env.HOSTNAME
340 return hostnameFromEnv ? hostnameFromEnv : 'localhost'
341}
342
343// PUBLIC application
344

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected