Skip to content

Commit 7c99758

Browse files
committed
Deleting fail-fast check of browser configuration, this breaks another Grid dependency on parts of RC server. The check must be performed in RC server (if ever).
1 parent 8fba765 commit 7c99758

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

java/server/src/org/openqa/grid/common/RegistrationRequest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.openqa.selenium.remote.CapabilityType;
3636
import org.openqa.selenium.remote.DesiredCapabilities;
3737
import org.openqa.selenium.remote.JsonToBeanConverter;
38-
import org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory;
3938

4039
import com.google.common.collect.Maps;
4140
import com.google.gson.Gson;
@@ -380,13 +379,6 @@ public static RegistrationRequest build(String... args) {
380379
res.loadFromCommandLine(args);
381380

382381
for (DesiredCapabilities cap : res.capabilities) {
383-
if (SeleniumProtocol.Selenium.toString().equals(cap.getCapability(SELENIUM_PROTOCOL))) {
384-
if (!BrowserLauncherFactory.isBrowserSupported(cap.getBrowserName())) {
385-
throw new GridConfigurationException("browser " + cap.getBrowserName()
386-
+ " is not supported, supported browsers are:\n"
387-
+ BrowserLauncherFactory.getSupportedBrowsersAsString());
388-
}
389-
}
390382
if (cap.getCapability(SELENIUM_PROTOCOL) == null) {
391383
cap.setCapability(SELENIUM_PROTOCOL,
392384
GridRole.isRC(nodeType)

0 commit comments

Comments
 (0)