Sends keys to the alert. The keystrokes to send. If is .
(string keysToSend)
| 69 | /// <param name="keysToSend">The keystrokes to send.</param> |
| 70 | /// <exception cref="ArgumentNullException">If <paramref name="keysToSend" /> is <see langword="null"/>.</exception> |
| 71 | public void SendKeys(string keysToSend) |
| 72 | { |
| 73 | if (keysToSend is null) |
| 74 | { |
| 75 | throw new ArgumentNullException(nameof(keysToSend), "Keys to send must not be null."); |
| 76 | } |
| 77 | |
| 78 | Dictionary<string, object?> parameters = new Dictionary<string, object?>(); |
| 79 | parameters.Add("text", keysToSend); |
| 80 | |
| 81 | this.driver.Execute(DriverCommand.SetAlertValue, parameters); |
| 82 | } |
| 83 | } |