File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,18 @@ public static string DriverPath(DriverOptions options)
104
104
}
105
105
106
106
Dictionary < string , object > output = RunCommand ( BinaryFullPath , argsBuilder . ToString ( ) ) ;
107
- string browserPath = ( string ) output [ "browser_path" ] ;
108
- string driverPath = ( string ) output [ "driver_path" ] ;
109
107
110
108
try
111
109
{
112
- options . BinaryLocation = browserPath ;
110
+ options . BinaryLocation = ( string ) output [ "browser_path" ] == "" ? null : ( string ) output [ "browser_path" ] ;
113
111
options . BrowserVersion = null ;
114
112
}
115
113
catch ( NotImplementedException )
116
114
{
117
115
// Cannot set Browser Location for this driver and that is ok
118
116
}
119
117
120
- return driverPath ;
118
+ return ( string ) output [ "driver_path" ] ;
121
119
}
122
120
123
121
/// <summary>
You can’t perform that action at this time.
0 commit comments