Method: Selenium::WebDriver::Platform.localhost
- Defined in:
- lib/selenium/webdriver/common/platform.rb
.localhost ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
130 131 132 133 134 135 136 137 138 |
# File 'lib/selenium/webdriver/common/platform.rb', line 130 def localhost info = Socket.getaddrinfo "localhost", 80, Socket::AF_INET, Socket::SOCK_STREAM if info.empty? raise Error::WebDriverError, "unable to translate 'localhost' for TCP+IPv6" end info[0][3] end |