如何使用 Selenium Webdriver 将文本设置为 TextArea? [英] How to set text into TextArea with Selenium Webdriver?

查看:29
本文介绍了如何使用 Selenium Webdriver 将文本设置为 TextArea?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将一些文本设置到 TextArea 中,默认情况下它具有某种文本,单击时会清除该文本,然后您可以为其设置文本,但我可以使用 java 使用 webdriver 执行它.

I am trying to set some Text into the TextArea which has some kind of text to it by default which when clicked clears out and then you can set text to it, but I'm enable to perform it with webdriver using java.

这是 TextArea 的代码片段:

Here's the code snippet of the TextArea: