4
4
using OpenQA . Selenium ;
5
5
using OpenQA . Selenium . DevTools ;
6
6
using System . Linq ;
7
- using OpenQA . Selenium . DevTools . V131 . Network ;
8
- using OpenQA . Selenium . DevTools . V131 . Performance ;
7
+ using OpenQA . Selenium . DevTools . V132 . Network ;
8
+ using OpenQA . Selenium . DevTools . V132 . Performance ;
9
9
10
10
11
11
namespace SeleniumDocs . BiDi . CDP
@@ -16,7 +16,7 @@ public class NetworkTest : BaseTest
16
16
[ TestInitialize ]
17
17
public void Startup ( )
18
18
{
19
- StartDriver ( "131 " ) ;
19
+ StartDriver ( "132 " ) ;
20
20
}
21
21
22
22
[ TestMethod ]
@@ -37,7 +37,7 @@ public async Task BasicAuthentication()
37
37
Assert . AreEqual ( "Congratulations! You must have the proper credentials." ,
38
38
driver . FindElement ( By . TagName ( "p" ) ) . Text ) ;
39
39
}
40
-
40
+
41
41
[ TestMethod ]
42
42
public async Task RecordNetworkResponse ( )
43
43
{
@@ -102,16 +102,16 @@ public async Task TransformNetworkRequest()
102
102
103
103
Assert . AreEqual ( "two" , driver . FindElement ( By . Id ( "result" ) ) . Text ) ;
104
104
}
105
-
105
+
106
106
[ TestMethod ]
107
107
public async Task PerformanceMetrics ( )
108
108
{
109
109
driver . Url = "https://www.selenium.dev/selenium/web/frameset.html" ;
110
110
111
111
var session = ( ( IDevTools ) driver ) . GetDevToolsSession ( ) ;
112
- var domains = session . GetVersionSpecificDomains < OpenQA . Selenium . DevTools . V131 . DevToolsSessionDomains > ( ) ;
112
+ var domains = session . GetVersionSpecificDomains < OpenQA . Selenium . DevTools . V132 . DevToolsSessionDomains > ( ) ;
113
113
114
- await domains . Performance . Enable ( new OpenQA . Selenium . DevTools . V131 . Performance . EnableCommandSettings ( ) ) ;
114
+ await domains . Performance . Enable ( new OpenQA . Selenium . DevTools . V132 . Performance . EnableCommandSettings ( ) ) ;
115
115
var metricsResponse =
116
116
await session . SendCommand < GetMetricsCommandSettings , GetMetricsCommandResponse > (
117
117
new GetMetricsCommandSettings ( )
@@ -130,8 +130,8 @@ await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
130
130
public async Task SetCookie ( )
131
131
{
132
132
var session = ( ( IDevTools ) driver ) . GetDevToolsSession ( ) ;
133
- var domains = session . GetVersionSpecificDomains < OpenQA . Selenium . DevTools . V131 . DevToolsSessionDomains > ( ) ;
134
- await domains . Network . Enable ( new OpenQA . Selenium . DevTools . V131 . Network . EnableCommandSettings ( ) ) ;
133
+ var domains = session . GetVersionSpecificDomains < OpenQA . Selenium . DevTools . V132 . DevToolsSessionDomains > ( ) ;
134
+ await domains . Network . Enable ( new OpenQA . Selenium . DevTools . V132 . Network . EnableCommandSettings ( ) ) ;
135
135
136
136
var cookieCommandSettings = new SetCookieCommandSettings
137
137
{
0 commit comments