rpa - 在 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 链接。
我该如何解决这个问题?
谢谢
解决方案
推荐阅读
- python - 求解 Frenet 框架的非线性 ODE 系统
- php - 选择一个月中每一天的计数
- php - 发生代码点火器错误从控制器重定向到登录视图
- node.js - Express JS 不执行删除
- c# - SslStream - AuthenticateAsClient 即使使用端口为 143 (http) 的 TcpClient NetworkStream 也会强制
- c - 客户端服务器套接字 - 非阻塞 I/O
- sql - 如何通过 ISA SERVER 2006 发布 1434 UDP 端口?
- reactjs - 警告:失败的道具类型:道具“消息”在“提示”中标记为必需,但其值为“未定义”
- c++ - 在 QT 中向小部件添加彩色边框的最佳方法是什么
- javascript - 包含特殊字符的字符串数组