| SearchContextFindElementByXPath メソッド |
指定した XPath に合致する最初の要素を検索します。
名前空間: Seleniumアセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文Dim instance As SearchContext
Dim xpath As String
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As WebElement
returnValue = instance.FindElementByXPath(xpath,
timeout, raise)
パラメータ
- xpath
- 型: SystemString
XPath - timeout(省略可)
- 型: SystemInt32
省略可。タイムアウト(ミリ秒)。 - raise(省略可)
- 型: SystemBoolean
省略可。True のときタイムアウト後に例外を送出します。
戻り値
型:
WebElementWebElement or null
参照