File tree Expand file tree Collapse file tree
examples/dotnet/SeleniumDocs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ private static string GetChromeLocation()
163163 {
164164 BrowserVersion = "stable"
165165 } ;
166- return new DriverFinder ( options ) . GetBrowserPath ( ) ;
166+ return new DriverFinder ( options ) . GetBrowserPathAsync ( ) . AsTask ( ) . GetAwaiter ( ) . GetResult ( ) ;
167167 }
168168 }
169169}
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ private static string GetEdgeLocation()
157157 {
158158 BrowserVersion = "stable"
159159 } ;
160- return new DriverFinder ( options ) . GetBrowserPath ( ) ;
160+ return new DriverFinder ( options ) . GetBrowserPathAsync ( ) . AsTask ( ) . GetAwaiter ( ) . GetResult ( ) ;
161161 }
162162 }
163163}
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ private static string GetFirefoxLocation()
203203 {
204204 BrowserVersion = "stable"
205205 } ;
206- return new DriverFinder ( options ) . GetBrowserPath ( ) ;
206+ return new DriverFinder ( options ) . GetBrowserPathAsync ( ) . AsTask ( ) . GetAwaiter ( ) . GetResult ( ) ;
207207 }
208208
209209 private void ResetGlobalLog ( )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void DriverPort()
3636
3737 private static string GetDriverLocation ( ChromeOptions options )
3838 {
39- return new DriverFinder ( options ) . GetDriverPath ( ) ;
39+ return new DriverFinder ( options ) . GetDriverPathAsync ( ) . AsTask ( ) . GetAwaiter ( ) . GetResult ( ) ;
4040 }
4141
4242 private static ChromeOptions GetLatestChromeOptions ( )
Original file line number Diff line number Diff line change 11using Microsoft . VisualStudio . TestTools . UnitTesting ;
22using OpenQA . Selenium ;
33using OpenQA . Selenium . Internal . Logging ;
4+ using OpenQA . Selenium . Manager ;
45using OpenQA . Selenium . Remote ;
56using System ;
67using System . IO ;
You can’t perform that action at this time.
0 commit comments