Skip to content

Commit f121c9e

Browse files
committed
Simplify
1 parent 9a9bbd7 commit f121c9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/dotnet/SeleniumDocs/BiDi/BrowsingContext/BrowsingContextTest.Event.UserPrompt.cs

+3-3
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)