RecursiveElementNameAndTextSelectorTest refactored