| By Class |
Namespace: Selenium
Dim instance As By
The By type exposes the following members.
| Name | Description | |
|---|---|---|
| Any |
Search using multiple mechanisms
| |
| Class |
Search by class name
| |
| Css |
Search by CSS selector
| |
| Equals |
Comapre two by objects
(Overrides ObjectEquals(Object).) | |
| GetHashCode | (Overrides ObjectGetHashCode.) | |
| Id |
Search by id
| |
| LinkText |
Search by link text
| |
| Name |
Search by name attribute
| |
| PartialLinkText |
Search by partial link text
| |
| Tag |
Search by tag name
| |
| ToString |
Gets a string representation of the finder.
(Overrides ObjectToString.) | |
| XPath |
Search by XPath
|
Set bt = By.Id("id") driver.FindElement(bt).Click
Set bt = By.Any(By.Id("name"), By.Id("id")) driver.FindElement(bt).Click