SearchContextFindElement メソッド
指定した方法で最初の WebElement を検索します。

名前空間: Selenium
アセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文
VB 使用例
Dim instance As SearchContext
Dim by As By
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As WebElement

returnValue = instance.FindElement(by, 
	timeout, raise)

パラメータ

by
型: SeleniumBy
Methode
timeout(省略可)
型: SystemInt32
省略可。タイムアウト(ミリ秒)。
raise(省略可)
型: SystemBoolean
省略可。True のときタイムアウト後に例外を送出します。

戻り値

型: WebElement
WebElement or null
Set elts = driver.FindElement(By.Any(By.Name("name"), By.Id("id")))
参照