Checks if there are elements that can be found by the specified Element Location Path interpreted against the specified context element.
This function returns the same result as the following call:
However, it will work faster.findElementsByLPath(element, lpath, ...).hasNext()
Parameters:
element
The context element against which the Location Path is to be interpreted.If this parameter is not specified, the Location Path will be interpreted against the generator context element, which is the same as the call:
contextElement.checkElementsByLPath(lpath)
See Also:
GOMContext.contextElement
lpath
The Location Path expression specifying how the elements should be searched (see "What are Location Paths?" below).You may use the Location Path Builder (found at the left panel's tree) to quickly construct a Location Path needed for this parameter.
Returns:
true
, if at least one element can be found by the specified Location Path;false
otherwise.
See Also:
findElementsByLPath(), countElementsByLPath(), checkElementsByLRules()
${include ../../../refs/lpaths.htm}