Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过 Web 驱动程序获取文本框中给出的文本。我知道给定的文本将作为值存储在该字段中。但是如何获取该值。
webdriver.findElement(By...).getAttribute("value"))
webdriver.findElement(By...).getText())