(string timeoutType)
| 107 | } |
| 108 | |
| 109 | private TimeSpan ExecuteGetTimeout(string timeoutType) |
| 110 | { |
| 111 | Response commandResponse = this.driver.Execute(DriverCommand.GetTimeouts, null); |
| 112 | |
| 113 | Dictionary<string, object?> responseValue = (Dictionary<string, object?>)commandResponse.Value!; |
| 114 | if (!responseValue.TryGetValue(timeoutType, out object? timeout)) |
| 115 | { |
| 116 | throw new WebDriverException("Specified timeout type not defined"); |
| 117 | } |
| 118 | |
| 119 | return TimeSpan.FromMilliseconds(Convert.ToDouble(timeout, CultureInfo.InvariantCulture)); |
| 120 | } |
| 121 | |
| 122 | private void ExecuteSetTimeout(string timeoutType, TimeSpan timeToWait) |
| 123 | { |
no test coverage detected