File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -111,21 +111,23 @@ private SeleniumManagerPaths BinaryPaths()
111111 }
112112
113113 SeleniumManagerPaths binaryPaths = SeleniumManager . BinaryPaths ( CreateArguments ( ) ) ;
114+ string driverPath = binaryPaths . DriverPath ;
115+ string browserPath = binaryPaths . BrowserPath ;
114116
115- if ( File . Exists ( binaryPaths . DriverPath ) )
117+ if ( File . Exists ( driverPath ) )
116118 {
117119 }
118120 else
119121 {
120- throw new NoSuchDriverException ( $ "The driver path is not a valid file: { binaryPaths . DriverPath } ") ;
122+ throw new NoSuchDriverException ( $ "The driver path is not a valid file: { driverPath } ") ;
121123 }
122124
123- if ( File . Exists ( binaryPaths . BrowserPath ) )
125+ if ( File . Exists ( browserPath ) )
124126 {
125127 }
126128 else
127129 {
128- throw new NoSuchDriverException ( $ "The browser path is not a valid file: { binaryPaths . BrowserPath } ") ;
130+ throw new NoSuchDriverException ( $ "The browser path is not a valid file: { browserPath } ") ;
129131 }
130132
131133 return paths = binaryPaths ;
You can’t perform that action at this time.
0 commit comments