使用 HtmlUnit,我有一个 HtmlTableRow,如何获取其所有内容作为字符串值?
我正在使用 HtmlUnit。
我有一个 HtmlTableRow 类型的对象,我想将所有内容转储到一个变量中,我该怎么做?
即只想获取如下 HTML: ....
I am using HtmlUnit.
I have an object of HtmlTableRow type, and I want to dump all of the content to a variable, how can I do this?
i.e. just want to get the HTML like: <tr><td>....</td></tr>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 HtmlTableRow javadoc 页面;我会告诉你答案就在那一页上。我不想对您严加严厉,但这是您在 48 小时内提出的第六个 HtmlUnit 问题,其中许多问题只需查看 HtmlUnit javadocs 就可以完全回答。我不确定你来这儿之前是否先看过那里,这是对这个社区的不尊重。
Here's the HtmlTableRow javadoc page; I will tell you that the answer is on that page. I hate to get all tough-love on you, but this is your sixth HtmlUnit question in 48 hours, and many of them have been completely answerable by just looking at the HtmlUnit javadocs. I'm not sure you're ever looking there first before coming here, and that's just not respectful of this community.