File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
java/src/org/openqa/selenium/grid/node/config Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,10 @@ public class NodeFlags implements HasRoles {
151
151
+ "file to improve readability. Command line example: "
152
152
+ "--driver-configuration display-name=\" Firefox Nightly\" max-sessions=2 "
153
153
+ "webdriver-path=\" /usr/local/bin/geckodriver\" "
154
- + "stereotype='{\" browserName\" : \" firefox\" , \" browserVersion\" : \" 86\" , "
155
- + "\" moz:firefoxOptions\" : "
156
- + "{\" binary\" :\" /Applications/Firefox Nightly.app/Contents/MacOS/firefox\" }}'" ,
154
+ + "stereotype=\" {\\ \" browserName\\ \" : \\ \" firefox\\ \" , "
155
+ + "\\ \" browserVersion\\ \" : \\ \" 86\\ \" , "
156
+ + "\\ \" moz:firefoxOptions\\ \" : "
157
+ + "{\\ \" binary\" :\" /Applications/Firefox Nightly.app/Contents/MacOS/firefox\\ \" }}\" " ,
157
158
arity = 4 ,
158
159
variableArity = true ,
159
160
splitter = NonSplittingSplitter .class )
Original file line number Diff line number Diff line change @@ -370,6 +370,10 @@ private void addDriverConfigs(
370
370
.ifPresent (
371
371
drivers -> {
372
372
List <Map <String , String >> configList = new ArrayList <>();
373
+ if (drivers .isEmpty ()) {
374
+ // This is the case when the configuration is provided through the CLI.
375
+ config .getAll (NODE_SECTION , "driver-configuration" ).ifPresent (drivers ::add );
376
+ }
373
377
374
378
// iterate over driver configurations
375
379
for (List <String > driver : drivers ) {
You can’t perform that action at this time.
0 commit comments