我得到了这个工作。这是解决方案-
WebElement text = wd.findElement(By.id("edit-pi-analytics-tms-id")); String textagain = text.getAttribute("value");我在我以前发布的代码示例中的textarea中使用了实际值,这有点愚蠢。谢谢大家帮助

我得到了这个工作。这是解决方案-
WebElement text = wd.findElement(By.id("edit-pi-analytics-tms-id")); String textagain = text.getAttribute("value");我在我以前发布的代码示例中的textarea中使用了实际值,这有点愚蠢。谢谢大家帮助