I am trying to read text from textarea when writing a webdriver test in Java. For some reason I am getting null back when I use .getAttribute():
.getAttribute()
So finding an element returns a web element. To get the text of the element you have to call getText(), so from above
WebElement element = wd.findElement(By.id("edit-pi-sample-geo-id")); String text = element.getText()