File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 20
20
using System . Collections . Generic ;
21
21
using System . Collections . ObjectModel ;
22
22
using System . IO ;
23
+ using System . Threading . Tasks ;
23
24
using OpenQA . Selenium . DevTools ;
24
25
using OpenQA . Selenium . Remote ;
25
26
@@ -303,7 +304,7 @@ public DevToolsSession GetDevToolsSession(int devToolsProtocolVersion)
303
304
try
304
305
{
305
306
DevToolsSession session = new DevToolsSession ( debuggerAddress ) ;
306
- session . StartSession ( devToolsProtocolVersion ) . ConfigureAwait ( false ) . GetAwaiter ( ) . GetResult ( ) ;
307
+ Task . Run ( async ( ) => await session . StartSession ( devToolsProtocolVersion ) ) . GetAwaiter ( ) . GetResult ( ) ;
307
308
this . devToolsSession = session ;
308
309
}
309
310
catch ( Exception e )
Original file line number Diff line number Diff line change 22
22
using System . Globalization ;
23
23
using System . IO ;
24
24
using System . IO . Compression ;
25
+ using System . Threading . Tasks ;
25
26
using OpenQA . Selenium . DevTools ;
26
27
using OpenQA . Selenium . Remote ;
27
28
@@ -395,7 +396,7 @@ public DevToolsSession GetDevToolsSession(int devToolsProtocolVersion)
395
396
try
396
397
{
397
398
DevToolsSession session = new DevToolsSession ( debuggerAddress ) ;
398
- session . StartSession ( devToolsProtocolVersion ) . ConfigureAwait ( false ) . GetAwaiter ( ) . GetResult ( ) ;
399
+ Task . Run ( async ( ) => await session . StartSession ( devToolsProtocolVersion ) ) . GetAwaiter ( ) . GetResult ( ) ;
399
400
this . devToolsSession = session ;
400
401
}
401
402
catch ( Exception e )
Original file line number Diff line number Diff line change 19
19
using System ;
20
20
using System . Collections . Generic ;
21
21
using System . Collections . ObjectModel ;
22
+ using System . Threading . Tasks ;
22
23
using OpenQA . Selenium . DevTools ;
23
24
using OpenQA . Selenium . Internal ;
24
25
@@ -455,7 +456,7 @@ public DevToolsSession GetDevToolsSession(int protocolVersion)
455
456
try
456
457
{
457
458
DevToolsSession session = new DevToolsSession ( debuggerAddress ) ;
458
- session . StartSession ( devToolsProtocolVersion ) . ConfigureAwait ( false ) . GetAwaiter ( ) . GetResult ( ) ;
459
+ Task . Run ( async ( ) => await session . StartSession ( devToolsProtocolVersion ) ) . GetAwaiter ( ) . GetResult ( ) ;
459
460
this . devToolsSession = session ;
460
461
}
461
462
catch ( Exception e )
You can’t perform that action at this time.
0 commit comments