Returns a boolean to continue waiting and throws an exception if the timeout is reached
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As Waiter
Dim result As Object
Dim timeout As Integer
Dim timeoutMessage As String
Dim returnValue As Boolean
returnValue = instance.Not(result, timeout,
timeoutMessage)
Parameters
- result
- Type: SystemObject
Result - timeout (Optional)
- Type: SystemInt32
Optional - Timeout in millisecond - timeoutMessage (Optional)
- Type: SystemString
Optional - Message in case of timeout
Return Value
Type:
BooleanReturns false if the result is true, false otherwise.
Examples Public Sub Script()
Dim driver As New FirefoxDriver, Waiter As New Waiter
driver.Get "http://www.mywebsite.com/"
While Waiter.Not(driver.Title = "MyTitle"): Wend
...
End Sub
See Also