File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/dotnet/SeleniumDocs/BiDi/BrowsingContext Expand file tree Collapse file tree 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()
1616 await context . NavigateAsync ( "https://www.selenium.dev/selenium/web/alerts.html" , new ( ) { Wait = ReadinessState . Complete } ) ;
1717
1818 //TODO; THhis event can be a part of context
19- await context . BiDi . BrowsingContext . OnUserPromptOpenedAsync ( tcs . SetResult ) ;
19+ await bidi . BrowsingContext . OnUserPromptOpenedAsync ( tcs . SetResult ) ;
2020
2121 driver . FindElement ( By . Id ( "prompt" ) ) . Click ( ) ;
2222
@@ -34,8 +34,8 @@ public async Task UserPromptClosedEvent()
3434 await context . NavigateAsync ( "https://www.selenium.dev/selenium/web/alerts.html" , new ( ) { Wait = ReadinessState . Complete } ) ;
3535
3636 //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+
3939 driver . FindElement ( By . Id ( "prompt" ) ) . Click ( ) ;
4040
4141 //await context.HandleUserPromptAsync();
You can’t perform that action at this time.
0 commit comments