我正在使用 Java 客户端开发 Selenium。我正在使用该方法将 Html 作为字符串driver.getPageSource()。
您能否向我建议,我们是否有任何用于将 Html 转换为 Java 对象的开源代码?
基于上述问题,我期待如下功能:
getTextBoxIds()- 它将列出所有文本框 Id 作为HashMap()id 作为 key,value 是 TextBox 的值。getSelectBoxIds()getDivIds()
注意:到目前为止,我正在使用contain(), indexOf(),lastIndexOf()方法检查预期数据。
问候, Vasanth D