jsexecutor クラス : ExistsId(string)メソッド
説明
要素が存在するかどうかを示す値を返します。
構文
instance.ExistsId(string id)
引数
| クラス | 名前 | 説明 |
| string | id | id 属性の値。 |
返り値
| クラス | 説明 |
| bool | 存在の有無。 |
サンプルコード
| 1: | jsexecutor jse; // For Main-browser |
| 2: | bool exists = jse.ExistsId("unique"); // If the document has element which id attribute is "unique", it returns true. |
注意
指定された id 属性値を持つ要素がドキュメントにある場合、true を返します。そうでない場合は、false を返します。
参照リンク
無し。


