File tree 1 file changed +9
-1
lines changed
java/server/src/org/openqa/grid/selenium
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,15 @@ private static GridItemLauncher buildLauncher(String[] args) {
99
99
100
100
for (int i = 0 ; i < args .length ; i ++) {
101
101
if (args [i ].equals ("-htmlSuite" )) {
102
- GridItemLauncher launcher = LAUNCHERS .get ("corerunner" ).get ();
102
+ 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 ();
103
111
launcher .setConfiguration (args );
104
112
return launcher ;
105
113
}
You can’t perform that action at this time.
0 commit comments