Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ Dismiss
Method
Dismiss
dotnet/src/webdriver/Alert.cs:53–56 ·
view source on GitHub ↗
Dismisses the alert.
()
Source
from the content-addressed store, hash-verified
51
/// Dismisses the alert.
52
/// </summary>
53
public void Dismiss()
54
{
55
this.driver.Execute(DriverCommand.DismissAlert, null);
56
}
57
58
/// <summary>
59
/// Accepts the alert.
Callers
7
CanIgnoreUnhandledAlert
Method · 0.45
ShouldAllowUsersToDismissAnAlertManually
Method · 0.45
ShouldAllowAUserToDismissAPrompt
Method · 0.45
AlertShouldNotAllowAdditionalCommandsIfDismissed
Method · 0.45
PromptShouldHaveNullValueIfDismissed
Method · 0.45
ShouldNotHandleAlertInAnotherWindow
Method · 0.45
HandleFormWithJavascriptAction
Method · 0.45
Calls
1
Execute
Method · 0.45
Tested by
7
CanIgnoreUnhandledAlert
Method · 0.36
ShouldAllowUsersToDismissAnAlertManually
Method · 0.36
ShouldAllowAUserToDismissAPrompt
Method · 0.36
AlertShouldNotAllowAdditionalCommandsIfDismissed
Method · 0.36
PromptShouldHaveNullValueIfDismissed
Method · 0.36
ShouldNotHandleAlertInAnotherWindow
Method · 0.36
HandleFormWithJavascriptAction
Method · 0.36