MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / ExecuteGetTimeout

Method ExecuteGetTimeout

dotnet/src/webdriver/Timeouts.cs:109–120  ·  view source on GitHub ↗
(string timeoutType)

Source from the content-addressed store, hash-verified

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 {

Callers 1

TimeoutsClass · 0.95

Calls 2

ExecuteMethod · 0.45
TryGetValueMethod · 0.45

Tested by

no test coverage detected