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.
我需要从 html 页面的一系列输入标签中读取值。任何人都可以在这方面帮助我吗?
提前致谢..
在使用 JWebUnit 时,可以通过以下方式获取网页中输入标签的值..:
getElementAttributeByXPath("table//tr[2]//td[2]/input[1]","value")
它给出了输入标签的 value 属性的值。