File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/eliasnogueira/driver Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 31
31
import org .openqa .selenium .WebDriver ;
32
32
import org .openqa .selenium .remote .RemoteWebDriver ;
33
33
34
- import java .net .URL ;
34
+ import java .net .URI ;
35
35
36
36
import static com .eliasnogueira .config .ConfigurationManager .configuration ;
37
37
import static com .eliasnogueira .driver .BrowserFactory .valueOf ;
@@ -57,7 +57,7 @@ private RemoteWebDriver createRemoteInstance(MutableCapabilities capability) {
57
57
try {
58
58
String gridURL = format ("http://%s:%s" , configuration ().gridUrl (), configuration ().gridPort ());
59
59
60
- remoteWebDriver = new RemoteWebDriver (new URL (gridURL ), capability );
60
+ remoteWebDriver = new RemoteWebDriver (URI . create (gridURL ). toURL ( ), capability );
61
61
} catch (java .net .MalformedURLException e ) {
62
62
logger .error ("Grid URL is invalid or Grid is not available" );
63
63
logger .error (format ("Browser: %s" , capability .getBrowserName ()), e );
You can’t perform that action at this time.
0 commit comments