package com.frameworkium.core.ui.driver.remotes;

import java.net.MalformedURLException;
import java.net.URL;

import static com.frameworkium.core.common.properties.Property.BROWSER_STACK;

public class BrowserStack {

    private BrowserStack() {
        // hide default constructor for this util class
    }

    public static URL getURL() throws MalformedURLException {
        return new URL(String.format("http://%s:%s@hub.browserstack.com:80/wd/hub",
                System.getenv("BROWSER_STACK_USERNAME"),
                System.getenv("BROWSER_STACK_ACCESS_KEY")));
    }

    public static boolean isDesired() {
        return BROWSER_STACK.getBoolean();
    }
}

@@ -408,16 +408,17 @@
 at(%22http
+s
 ://%25s:%25s
@@ -421,16 +421,22 @@
 s:%25s@hub
+-cloud
 .browser
@@ -448,11 +448,8 @@
 .com
-:80
 /wd/

Update BrowserStack hub URL.