Deprecate PortProber.random as it's not guaranteed to work correctly
It will be removed in Selenium 4. Use PortProber.above(port) instead.
Related to
@@ -29,6 +29,8 @@ module Selenium
# (a) should pick a port that's guaranteed to be free on all interfaces
# (b) should pick a random port outside the ephemeral port range
#
+ WebDriver.logger.deprecate 'PortProber.random', 'PortProber.above(port)'
+
server = TCPServer.new(Platform.localhost, 0)
port = server.addr[1]
server.close
