There was an error while loading. Please reload this page.
1 parent c829ac8 commit 501b325Copy full SHA for 501b325
1 file changed
java/server/src/org/openqa/grid/selenium/GridLauncherV3.java
@@ -99,7 +99,15 @@ private static GridItemLauncher buildLauncher(String[] args) {
99
100
for (int i = 0; i < args.length; i++) {
101
if (args[i].equals("-htmlSuite")) {
102
- GridItemLauncher launcher = LAUNCHERS.get("corerunner").get();
+ Supplier<GridItemLauncher> launcherSupplier = LAUNCHERS.get("corerunner");
103
+ if (launcherSupplier == null) {
104
+ System.err.println(
105
+ "Unable to find the HTML runner. This is normally because you have not downloaded " +
106
+ "or made available the 'selenium-leg-rc' jar on the CLASSPATH. Your test will " +
107
+ "not be run.");
108
+ return null;
109
+ }
110
+ GridItemLauncher launcher = launcherSupplier.get();
111
launcher.setConfiguration(args);
112
return launcher;
113
}
0 commit comments