DefaultWait T  ThrowTimeoutException Method WebDriver
Throws a WebDriverTimeoutException with the given message.

Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

protected virtual void ThrowTimeoutException(
	string exceptionMessage,
	Exception lastException
)

Parameters

exceptionMessage
Type: OnlineSystem String
The message of the exception.
lastException
Type: OnlineSystem Exception
The last exception thrown by the condition.
Remarks

This method may be overridden to throw an exception that is idiomatic for a particular test infrastructure.
See Also