Verify Class
Testing functions. Return the résult of the verification
Inheritance Hierarchy
SystemObject
  SeleniumVerify

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As Verify

The Verify type exposes the following members.

Constructors
  NameDescription
Public methodVerify
Create a Verify object.
Top
Methods
  NameDescription
Public methodStatic memberContains
Tests that an input does not contain a value.
Public methodStatic memberEquals
Tests that two objects are equal.
Public methodStatic memberFalse
Tests that an input is false.
Public methodStatic memberMatches
Tests that an input matches a regular expression pattern.
Public methodStatic memberNotEquals
Tests that two objects are not equal.
Public methodStatic memberNotMatches
Tests that an input does not matche a regular expression pattern.
Public methodStatic memberTrue
Tests that an input is true.
Top
Examples
The following example asserts the page title.
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
See Also