| Assert Class |
Namespace: Selenium
Dim instance As Assert
The Assert type exposes the following members.
| Name | Description | |
|---|---|---|
| Contains |
Raise an error if the text does not contain the value.
| |
| Equals |
Test that two objects are equal and raise an exception if the result is false
| |
| Fail |
Raise an error.
| |
| False |
Raise an error if the value is false.
| |
| Matches |
Raise an error if the text matches the pattern.
| |
| NotEquals |
Test that two objects are not equal and raise an exception if the result is false
| |
| NotMatches |
Raise an error if the text does not match the pattern.
| |
| True |
Raise an error if the value is true.
|
Set Assert = CreateObject("Selenium.Assert") Set driver = CreateObject("Selenium.FirefoxDriver") driver.get "http://www.google.com" Assert.Equals "Google", driver.Title driver.stop
Private Assert As New Selenium.Assert Public Sub TestCase() Dim driver As New Selenium.FirefoxDriver driver.get "http://www.google.com" Assert.Equals "Google", driver.Title driver.stop End Sub