I know I can get the \"value\" attribute of a radiobutton but I\'m finding it strangely difficult to get the text of the radiobutton.
Consider the example below. It has
elem.nextSibling.nodeValue.replace('\n', '')
The replace is to get rid of the newline (may be different on different OSes, I am running Windows) character which is there for some reason.