jsexecutor class : ExistsId(string) method

Description

Returns a value that indicates whether the element exists.

Syntax

instance.ExistsId(string id)

Arguments

ClassNameDescription
stringidThe value of the id attribute.

Return value

ClassDescription
boolExistence

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.

Copyright © Cooker All rights reserved.