Contributions
how to Get Text from Element
HI, I need to get Text from the element, can someone help me that how to get the text from the element? Here my scenario is: I need to verify whether the column values in the table are in descending order or not. I was tried in two different ways 1.let val1=sys.Browser("chrome").Page(pageURL).Findelements("xpath=locator").Text; Error: Text is not a function 2.let val1 = document.querySelector("CssSelector").innerText Error: document is undefined Note: Here I'm trying this in Script mode855Views0likes1Comment