【发布时间】:2013-07-18 17:20:23
【问题描述】:
我正在编写 Selenium 脚本。对于包含表格的 html 页面,我无法使用“css=table tr:nth-child(2) td:nth-child(3) a”来定位表格中的链接。 Selenium IDE 给我“[error] locator not found”。
但是使用“css=table tr:nth-child(2)”,它可以定位到行。 所以我误认为 css 定位器,我认为添加 "td:nth-child(3) a" 应该适用于 td 中的链接,为什么不呢?
编辑:我使用的是 firefox 3.0.15
【问题讨论】: