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 38
38
import org .openqa .selenium .Capabilities ;
39
39
import org .openqa .selenium .MutableCapabilities ;
40
40
import org .openqa .selenium .WebDriver ;
41
+ import org .openqa .selenium .net .NetworkUtils ;
41
42
import org .openqa .selenium .remote .RemoteWebDriver ;
42
43
import org .slf4j .Logger ;
43
44
import org .slf4j .LoggerFactory ;
46
47
import com .nordstrom .automation .selenium .DriverPlugin ;
47
48
import com .nordstrom .automation .selenium .SeleniumConfig ;
48
49
import com .nordstrom .automation .selenium .exceptions .GridServerLaunchFailedException ;
49
- import com .nordstrom .automation .selenium .utility .NetIdentity ;
50
50
import com .nordstrom .common .base .UncheckedThrow ;
51
51
import com .nordstrom .common .file .PathUtils ;
52
52
import com .nordstrom .common .uri .UriUtils ;
57
57
public final class GridUtility {
58
58
59
59
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 ();
61
61
62
62
/**
63
63
* Private constructor to prevent instantiation.
@@ -310,7 +310,7 @@ public static HttpHost extractHost(URL url) {
310
310
* @return IP address for the machine we're running on (a.k.a. - 'localhost')
311
311
*/
312
312
public static String getLocalHost () {
313
- return IDENTITY .getHostAddress ();
313
+ return IDENTITY .getNonLoopbackAddressOfThisMachine ();
314
314
}
315
315
316
316
/**
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments