I have the html page, and me need find some elements with tag a 'table', but such tables maybe more than one, and they don't have id or class name. Example:
<table>
<tbody>
<tr>
.....
<table>
<tbody>
<tr>
.....
<table>
<tbody>
<tr> <-------BINGO!
.....
How i can it's do with help HtmlUnit? Thanks...
使用HtmlPage.getElementsByTagName("table")
并遍历返回的HtmlTable对象列表,直到找到要查找的表为止。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.