Verify Class |
Namespace: Selenium
Dim instance As Verify
The Verify type exposes the following members.
Name | Description | |
---|---|---|
Contains |
Tests that an input does not contain a value.
| |
Equals |
Tests that two objects are equal.
| |
False |
Tests that an input is false.
| |
Matches |
Tests that an input matches a regular expression pattern.
| |
NotEquals |
Tests that two objects are not equal.
| |
NotMatches |
Tests that an input does not matche a regular expression pattern.
| |
True |
Tests that an input is true.
|
Set driver = CreateObject("Selenium.WebDriver") Set Verify = CreateObject("Selenium.Verify") driver.start "firefox", "http://www.google.com" driver.get "/" wscript.echo Verify.Equals("Google", driver.Title) driver.stop
Private Verify As New Selenium.Verify Public Sub TestCase() Dim driver As New FirefoxDriver driver.Get "http://www.google.com" Range("A1") = Verify.Equals("Google", driver.Title) driver.Quit End Sub