SearchContext Class
Locators methods for WebDriver and WebElement
Inheritance Hierarchy
SystemObject
  SeleniumSearchContext
    SeleniumWebDriver
    SeleniumWebElement

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

The SearchContext type exposes the following members.

Methods
  NameDescription
Public methodCode exampleFindElement
Find the first WebElement using the given method.
Public methodFindElementBy
Finds the first child element matching the given mechanism and value.
Public methodFindElementByClass
Finds the first element matching the specified CSS class.
Public methodFindElementByCss
Finds the first element matching the specified CSS selector.
Public methodFindElementById
Finds the first element matching the specified id.
Public methodFindElementByLinkText
Finds the first element matching the specified link text.
Public methodFindElementByName
Finds the first element matching the specified name.
Public methodFindElementByPartialLinkText
Finds the first of elements that match the part of the link text supplied
Public methodFindElementByTag
Finds the first element matching the specified tag name.
Public methodFindElementByXPath
Finds the first element matching the specified XPath query.
Public methodCode exampleFindElements
Find all elements within the current context using the given mechanism.
Public methodFindElementsBy
Finds all child elements matching the given mechanism and value.
Public methodFindElementsByClass
Finds elements matching the specified CSS class.
Public methodFindElementsByCss
Finds elements matching the specified CSS selector.
Public methodFindElementsById
Finds elements matching the specified id.
Public methodFindElementsByLinkText
Finds elements matching the specified link text.
Public methodFindElementsByName
Finds elements matching the specified name.
Public methodFindElementsByPartialLinkText
Finds the first of elements that match the part of the link text supplied
Public methodFindElementsByTag
Finds elements matching the specified tag name.
Public methodFindElementsByXPath
Finds elements matching the specified XPath query.
Public methodIsElementPresent
"Verifies that the specified element is somewhere on the page."
Public methodWaitNotElement
Waits for an element to be missing.
Top
See Also