Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ Accept
Method
Accept
dotnet/src/webdriver/Alert.cs:61–64 ·
view source on GitHub ↗
Accepts the alert.
()
Source
from the content-addressed store, hash-verified
59
/// Accepts the alert.
60
/// </summary>
61
public void Accept()
62
{
63
this.driver.Execute(DriverCommand.AcceptAlert, null);
64
}
65
66
/// <summary>
67
/// Sends keys to the alert.
Callers
15
ShouldBeAbleToAddInitializationScriptAndExecuteOnNewDocument
Method · 0.45
ShouldBeAbleToAddAndRemoveScriptCallbackBinding
Method · 0.45
CanCallGetWindowHandlesAfterClosingAWindow
Method · 0.45
ShouldAllowUsersToAcceptAnAlertManually
Method · 0.45
ShouldThrowArgumentNullExceptionWhenKeysNull
Method · 0.45
ShouldAllowUsersToAcceptAnAlertWithNoTextManually
Method · 0.45
ShouldAllowAUserToAcceptAPrompt
Method · 0.45
ShouldAllowAUserToSetTheValueOfAPrompt
Method · 0.45
SettingTheValueOfAnAlertThrows
Method · 0.45
ShouldAllowTheUserToGetTheTextOfAnAlert
Method · 0.45
ShouldAllowTheUserToGetTheTextOfAPrompt
Method · 0.45
ShouldAllowUsersToAcceptAnAlertInAFrame
Method · 0.45
Calls
1
Execute
Method · 0.45
Tested by
15
ShouldBeAbleToAddInitializationScriptAndExecuteOnNewDocument
Method · 0.36
ShouldBeAbleToAddAndRemoveScriptCallbackBinding
Method · 0.36
CanCallGetWindowHandlesAfterClosingAWindow
Method · 0.36
ShouldAllowUsersToAcceptAnAlertManually
Method · 0.36
ShouldThrowArgumentNullExceptionWhenKeysNull
Method · 0.36
ShouldAllowUsersToAcceptAnAlertWithNoTextManually
Method · 0.36
ShouldAllowAUserToAcceptAPrompt
Method · 0.36
ShouldAllowAUserToSetTheValueOfAPrompt
Method · 0.36
SettingTheValueOfAnAlertThrows
Method · 0.36
ShouldAllowTheUserToGetTheTextOfAnAlert
Method · 0.36
ShouldAllowTheUserToGetTheTextOfAPrompt
Method · 0.36
ShouldAllowUsersToAcceptAnAlertInAFrame
Method · 0.36