WebDriver.FindElementsByTag メソッド

本ページには広告が含まれています。


Warning: Trying to access array offset on null in /home/uwsc/domains/uwsc.jp/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(947) : eval()'d code on line 13

指定されたタグ名に一致するすべてのWebElements オブジェクトを取得します。

構文
  1. WebElements = WebDriver.FindElementsByTag( tagname, minimum, timeout )
引数
tagname(String)必須
取得する要素のタグ名を指定
minimum(Long)省略可
待機する要素の最小数
timeout(Long)省略可
タイムアウト(単位:ms)。
戻り値

使い方

pタグを探し、1つ目の内容を取得する。2つ目の内容を取得する場合はItemの引数に2を指定する。

UWSC
HTML
結果
プレーンテキスト