File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed
Gravity.Abstraction.Tests/Integration
Gravity.Abstraction/WebDriver Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 1
- using Gravity . Abstraction . Tests . Base ;
1
+ using Gravity . Abstraction . Contracts ;
2
+ using Gravity . Abstraction . Tests . Base ;
3
+ using Gravity . Abstraction . WebDriver ;
2
4
3
5
using Microsoft . VisualStudio . TestTools . UnitTesting ;
4
6
5
7
using OpenQA . Selenium ;
8
+ using OpenQA . Selenium . Appium ;
9
+ using OpenQA . Selenium . Appium . iOS ;
10
+ using OpenQA . Selenium . Appium . Service . Options ;
11
+ using OpenQA . Selenium . Safari ;
6
12
13
+ using System ;
14
+ using System . Collections . Generic ;
7
15
using System . Reflection ;
16
+ using System . Text . Json ;
8
17
9
18
namespace Gravity . Abstraction . Tests . Integration
10
19
{
@@ -70,17 +79,5 @@ public void CreateRemoteEdge()
70
79
// assertion
71
80
Assert . IsTrue ( condition : actual ) ;
72
81
}
73
-
74
- public void CreateRemoteUia ( )
75
- {
76
- // execute
77
- var actual = CreateRemoteDriver (
78
- onDriver : "UiaDriver" ,
79
- onTest : MethodBase . GetCurrentMethod ( ) . Name ,
80
- onContext : TestContext ) ;
81
-
82
- // assertion
83
- Assert . IsTrue ( condition : actual ) ;
84
- }
85
82
}
86
- }
83
+ }
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ private IWebDriver GetRemoteUiaDriver(string driverBinaries)
257
257
258
258
// build
259
259
using var client = new HttpClient ( ) ;
260
+ client . DefaultRequestHeaders . Connection . Add ( "Keep-Alive" ) ;
260
261
var requestBody = JsonSerializer . Serialize ( capabilities , new JsonSerializerOptions
261
262
{
262
263
PropertyNamingPolicy = JsonNamingPolicy . CamelCase
You can’t perform that action at this time.
0 commit comments