File tree Expand file tree Collapse file tree 2 files changed +3
-54
lines changed
src/main/java/com/nordstrom/automation/selenium Expand file tree Collapse file tree 2 files changed +3
-54
lines changed Original file line number Diff line number Diff line change 3838import org .openqa .selenium .Capabilities ;
3939import org .openqa .selenium .MutableCapabilities ;
4040import org .openqa .selenium .WebDriver ;
41+ import org .openqa .selenium .net .NetworkUtils ;
4142import org .openqa .selenium .remote .RemoteWebDriver ;
4243import org .slf4j .Logger ;
4344import org .slf4j .LoggerFactory ;
4647import com .nordstrom .automation .selenium .DriverPlugin ;
4748import com .nordstrom .automation .selenium .SeleniumConfig ;
4849import com .nordstrom .automation .selenium .exceptions .GridServerLaunchFailedException ;
49- import com .nordstrom .automation .selenium .utility .NetIdentity ;
5050import com .nordstrom .common .base .UncheckedThrow ;
5151import com .nordstrom .common .file .PathUtils ;
5252import com .nordstrom .common .uri .UriUtils ;
5757public final class GridUtility {
5858
5959 private static final Logger LOGGER = LoggerFactory .getLogger (GridUtility .class );
60- private static final NetIdentity IDENTITY = new NetIdentity ();
60+ private static final NetworkUtils IDENTITY = new NetworkUtils ();
6161
6262 /**
6363 * Private constructor to prevent instantiation.
@@ -310,7 +310,7 @@ public static HttpHost extractHost(URL url) {
310310 * @return IP address for the machine we're running on (a.k.a. - 'localhost')
311311 */
312312 public static String getLocalHost () {
313- return IDENTITY .getHostAddress ();
313+ return IDENTITY .getNonLoopbackAddressOfThisMachine ();
314314 }
315315
316316 /**
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments