DefaultWaitTThrowTimeoutException Method WebDriver
Throws a WebDriverTimeoutException with the given message.

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

protected virtual void ThrowTimeoutException(
	string exceptionMessage,
	Exception lastException
)

Parameters

exceptionMessage
Type: SystemString
The message of the exception.
lastException
Type: SystemException
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

Reference