WebElement クラス
画面上の 1 つの要素を表し、クリック、テキスト入力、属性・表示状態の取得、スクリーンショットなどを行うためのクラスです。
継承階層
SystemObject
  SeleniumSearchContext
    SeleniumWebElement

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

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

メソッド
  名前説明
公開メソッドAsSelect
WebElement を Select 要素として扱います。
公開メソッドAsTable
WebElement を Select 要素として扱います。
公開メソッドAttribute
Gets the attribute value.
公開メソッドClear
Clears the text if it’s a text entry element.
公開メソッドClick
Clicks the element.
公開メソッドClickAndHold
Clicks the element and hold.
公開メソッドClickByOffset
Clicks at the element offset.
公開メソッドClickContext
Rigth clicks the element
公開メソッドClickDouble
Double clicks the element.
公開メソッドCssValue
Returns the value of a CSS property
公開メソッドDragAndDropToOffset
Drag and drop the element to an offset
公開メソッドDragAndDropToWebElement
Drag and drop the element to another element
公開メソッドEquals(Object)
指定したインスタンスが等しいとみなされるかを判定します。
(Overrides ObjectEquals(Object).)
公開メソッドEquals(WebElement)
Compares if two web elements are equal
公開メソッドコード例ExecuteAsyncScript
Execute an asynchronous piece of JavaScript in the context of the current element
公開メソッドコード例ExecuteScript
Executes a piece of JavaScript in the context of the current element.
公開メソッドコード例FindElement
指定した方法で最初の WebElement を検索します。
(継承元: SearchContext
公開メソッドFindElementBy
指定した方法と値に合致する最初の子要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByClass
指定した CSS クラスに合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByCss
指定した CSS セレクターに合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementById
指定した id に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByLinkText
指定したリンクテキストに合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByName
指定した name に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByPartialLinkText
指定したリンクテキストの部分一致に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByTag
指定したタグ名に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementByXPath
指定した XPath に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドコード例FindElements
現在のコンテキストから、指定した方法ですべての要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsBy
指定した方法と値に合致するすべての子要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByClass
指定した CSS クラスに合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByCss
指定した CSS セレクターに合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsById
指定した id に合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByLinkText
指定したリンクテキストに合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByName
指定した name に合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByPartialLinkText
指定したリンクテキストの部分一致に合致する最初の要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByTag
指定したタグ名に合致する要素を検索します。
(継承元: SearchContext
公開メソッドFindElementsByXPath
指定した XPath に合致する要素を検索します。
(継承元: SearchContext
公開メソッドGetHashCode
ハッシュコードを返します。 for this element
(Overrides ObjectGetHashCode.)
公開メソッドHoldKeys
Press a key and hold
公開メソッドIsElementPresent
指定した要素がページ上のどこかに存在することを検証します。
(継承元: SearchContext
公開メソッドLocation
Returns the location of the element in the renderable canvas
公開メソッドLocationInView
Gets the location of an element relative to the origin of the view port.
公開メソッドReleaseKeys
Release a key
公開メソッドReleaseMouse
Release a click
公開メソッドScrollIntoView
Scrolls the current element into the visible area of the browser window.
公開メソッドコード例SendKeys
Simulates typing into the element.
公開メソッドSerializeJson
公開メソッドSize
要素のサイズを返します。
公開メソッドSubmit
Submits a form.
公開メソッドTakeScreenshot
Gets the screenshot of the current element
公開メソッドText
Gets the text of the element.
公開メソッドTextAsNumber
Return a number parsed from the text
公開メソッドTextMatch
入力文字列から、pattern で指定した正規表現に一致する箇所を検索します。
公開メソッドTextMatches
正規表現に一致するすべての出現を返します。
公開メソッドUntilT
デリゲートが null 以外または True を返すまで待機します。
公開メソッドValue
Returns the value attribute
公開メソッドWaitAttribute
Waits for an attribute
公開メソッドWaitCssValue
Waits for a CSS property
公開メソッドWaitDisplayed
Waits for the element to be displayed.
公開メソッドWaitEnabled
Waits for the element to be enabled.
公開メソッドWaitForScript
Waits for a script to return true or not null.
公開メソッドWaitNotAttribute
Waits for a different attribute
公開メソッドWaitNotCssValue
Waits for a different CSS property
公開メソッドWaitNotElement
要素が存在しなくなるまで待機します。
(継承元: SearchContext
公開メソッドWaitNotText
Waits for a different text
公開メソッドWaitRemoval
Wait for the web element to be removed from the DOM.
公開メソッドWaitSelection
Waits for the element to be selected or not.
公開メソッドWaitText
Waits for text
ページ先頭
プロパティ
  名前説明
公開プロパティIsDisplayed
Whether the element would be visible to a user
公開プロパティIsEnabled
Whether the element is enabled.
公開プロパティIsPresent
Whether the element is present
公開プロパティIsSelected
Whether the element is selected.
公開プロパティRect
要素のサイズを返します。
公開プロパティTagName
Gets this element’s tagName property.
ページ先頭
参照