all elements which contain the given text.
above code will find all the DIVs which contains the word 'John'. The argument
passed inside contains() is string type and case sensitive.
all elements that have no children (including text nodes).
code will find all the Tds which doesn't have any value or are empty.
elements which contain at least one element that matches the specified
above code will match the DIV elements which have a paragraph (p
element) inside them. The attribute selector is a selector with which we
want to filter by.
finds all elements that are parents i.e. they have child elements, including
all tds which have other child control, including text, inside them.