首页 > 解决方案 > 在 web 表中循环以获取 Href 链接

问题描述

如何在 web 表中循环并获取该表中每个记录的 href 链接。

我正在使用 Automation Anywhere 社区版。

这是表格:

参考表

链接: https ://www.w3schools.com/html/html_tables.asp

这是我的代码: https ://i.stack.imgur.com/dcwRm.png

这是循环的 XPath(第 2 步): //div[@id='main']/table 1 /tbody 1 /tr[$var_Count.Number:toString$]/td 1 /a 1

这是捕获对象的路径(第 4 步): //div[@id='main']/table 1 /tbody 1 /tr[$var_Count.Number:toString$]/td 1 /a 1

在第 2 步,while 循环中,我捕获了表中的第一个元素,而不是整个表。当它循环时,它不会移动到捕获表中其他元素的 Href 链接。

我该如何解决这个问题?

谢谢

标签: rpaautomationanywhere

解决方案


推荐阅读