Interface IAlert
Defines the interface through which the user can manipulate JavaScript alerts.
public interface IAlert
Properties
Text
Gets the text of the alert.
string? Text { get; }
Property Value
Methods
Accept()
Accepts the alert.
void Accept()
Dismiss()
Dismisses the alert.
void Dismiss()
SendKeys(string)
Sends keys to the alert.
void SendKeys(string keysToSend)
Parameters
keysToSend
stringThe keystrokes to send.
Exceptions
- ArgumentNullException
If
keysToSend
is null.