View Sourcemodule selenium-webdriver/net/portproberFunctionsfindFreePort(opt_host)code »Parametersopt_hoststring=The bound host to test the port against. Defaults to INADDR_ANY. Returnswebdriver.promise.Promise<number>A promise that will resolve to a free port. If a port cannot be found, the promise will be rejected. isFree(port, opt_host)code »Tests if a port is free. ParametersportnumberThe port to test. opt_hoststring=The bound host to test the port against. Defaults to INADDR_ANY. Returnswebdriver.promise.Promise<boolean>A promise that will resolve with whether the port is free.