本ページには広告が含まれています。
WebElementsコレクション内の要素数を返します。
- 構文
- Long = WebElements.Count
- 引数
- 戻り値
WebElements オブジェクトを返すメソッド・プロパティ
- WebElements.Item プロパティ
- 指定されたロケータに一致するすべてのWebElements オブジェクトを取得します。
- 指定されたロケータと値に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたCSSクラスに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたCSSセレクタに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたid属性に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたリンクテキストに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたname属性に一致するすべてのWebElements オブジェクトを取得します。
- 指定されたリンクテキストの部分に一致するすべてのWebElements オブジェクトを取得します。
- WebDriver.FindElementsByTag メソッド
- 指定されたタグ名に一致するすべてのWebElements オブジェクトを取得します。
- 指定された XPath クエリに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたロケータに一致するすべてのWebElements オブジェクトを取得します。
- 指定されたロケータと値に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたCSSクラスに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたCSSセレクタに一致するすべてのWebElements オブジェクトを取得します。
- 指定されたid属性に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたリンクテキストに一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたname属性に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたリンクテキストの部分に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定されたタグ名に一致するすべてのWebElements オブジェクトを取得します。
- WebElements.Item プロパティ
- 指定された XPath クエリに一致するすべてのWebElements オブジェクトを取得します。
使い方
WebElementsコレクション内の要素数を返します。
以下はExample DomainのpタグのWebElements オブジェクトを取得しその要素数を返します。
- 結果
