Several interfaces exist to assist you if you need to test specifics about the number of elements that match a given element specification.
#all to retrieve all matched elements:
# to index a specific element from a matching set. Note that indexing starts at
0, so the first element in a set is
You can also use
#last if you prefer:
#size to verify the length of a set of matched elements: