jsexecutor class : ExistsId(string) method
Description
Returns a value that indicates whether the element exists.
Syntax
instance.ExistsId(string id)
Arguments
| Class | Name | Description |
| string | id | The value of the id attribute. |
Return value
| Class | Description |
| bool | Existence |
Sample code
| 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. |
Notes
Returns true if the document has an element with the specified id attribute value. Otherwise, returns false.
Links for reference
None.


