Added support for boolean conditions when specifying contained text in target element or parent