HElp! have to perform js operations to get the label text

Badge +3

i have to extract the above label Like in which year was your mother born? the last word is answer but i have captured it from recorder but it doesnt wrok it say unable to find label i just want to do it using js or any other way can you help please how could we do itjs path is for both labels respectively

document.querySelector("#qnaTable > div:nth-child(1) > label")

document.querySelector("#qnaTable > div:nth-child(2) > label")

later have to paste the last word in the text field

@Datta Kothamasu 


0 replies

Be the first to reply!