<div class="nameClass_1"> <div class="nameClass_2"> <span class="nameClass_3">TEXT</span> </div> </div>
$(".nameClass_1").click();
$(".nameClass_1:has(.nameClass_3:contains(TEXT))").click();
$('.nameClass_1:contains("TEXT")').click()