File tree 1 file changed +3
-3
lines changed
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public async Task UserPromptOpenedEvent()
16
16
await context . NavigateAsync ( "https://www.selenium.dev/selenium/web/alerts.html" , new ( ) { Wait = ReadinessState . Complete } ) ;
17
17
18
18
//TODO; THhis event can be a part of context
19
- await context . BiDi . BrowsingContext . OnUserPromptOpenedAsync ( tcs . SetResult ) ;
19
+ await bidi . BrowsingContext . OnUserPromptOpenedAsync ( tcs . SetResult ) ;
20
20
21
21
driver . FindElement ( By . Id ( "prompt" ) ) . Click ( ) ;
22
22
@@ -34,8 +34,8 @@ public async Task UserPromptClosedEvent()
34
34
await context . NavigateAsync ( "https://www.selenium.dev/selenium/web/alerts.html" , new ( ) { Wait = ReadinessState . Complete } ) ;
35
35
36
36
//TODO; THhis event can be a part of context
37
- await context . BiDi . BrowsingContext . OnUserPromptClosedAsync ( tcs . SetResult ) ;
38
-
37
+ await bidi . BrowsingContext . OnUserPromptClosedAsync ( tcs . SetResult ) ;
38
+
39
39
driver . FindElement ( By . Id ( "prompt" ) ) . Click ( ) ;
40
40
41
41
//await context.HandleUserPromptAsync();
You can’t perform that action at this time.
0 commit comments