document.querySelectorAll('.variants .text_answer')[0].innerHTML // или document.getElementsByClassName('.text_answer')[0].innerHTML