SelectElement クラス
HTML の select 要素に対し、オプションの選択・解除・複数選択の確認などを行うためのクラスです。
継承階層
SystemObject
  SeleniumSelectElement

名前空間: Selenium
アセンブリ: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
構文
VB 使用例
Dim instance As SelectElement

SelectElement には次のメンバーが定義されています。

メソッド
  名前説明
公開メソッドDeselectAll
Clear all selected entries. This is only valid when the SELECT supports multiple selections.
公開メソッドDeselectByIndex
要素の index 属性で決まるインデックスによってオプションの選択を解除します。
公開メソッドDeselectByText
Deselect the option by the text displayed.
公開メソッドDeselectByValue
Deselect the option having value matching the specified text.
公開メソッドSelectByIndex
要素の index 属性で決まるインデックスによってオプションを選択します。
公開メソッドSelectByText
Select all options by the text displayed.
公開メソッドSelectByValue
Select an option by the value.
ページ先頭
プロパティ
  名前説明
公開プロパティAllSelectedOptions
Gets all of the selected options within the select element.
公開プロパティIsMultiple
Gets a value indicating whether the parent element supports multiple selections.
公開プロパティOptions
Gets the list of options for the select element.
公開プロパティSelectedOption
Gets the selected item within the select element.
ページ先頭
Select an element by text
driver.FindElementById("select").AsSelect.SelectByText "Option Two"
参照