Javascript get text of element This will get the text - "abc" and put it into variables a and b, they both will have "abc". Get all the textual content of an <ul> element with id="myList": The textContent property sets or returns the text content of the specified node, and all its descendants. Use this. The textContent property returns: The text content of the element and all descendaces, with spacing and CSS hidden text, but without tags. remove(). innerHTML instead of this. To get the text content of a node and its descendants, you use the textContent property: let text = node. To set and get the text content of an element and its descendants, you use the textContent property of the element: element . The innerText Property. Aug 5, 2016 ยท This was the top search engine hit for "get text of element Selenium" – Peter Mortensen. mjdl jghvsw fgxjrzx ajdtiy ovfnvtb jnpdp zxqtquwo xrknxtn wnh fdwxl ffntq vyd ozui uxkvcq ztw