reading text from textarea in webdriver
I got this working. Here is the solution-
WebElement text = wd.findElement(By.id("edit-pi-analytics-tms-id"));
String textagain = text.getAttribute("value");
I was using the actual value in the textarea in the previous code example i posted which was kinda silly. Thanks guys for your help
I'm using selenium version 3.4 and using element.getAttribute("value") that work for me. The element.getText() would return empty value for TextArea.