我使用selenium的webdriver从googleadwords下载报告。问题是,似乎webdriver并没有返回页面中的所有链接。如所附照片所示,当我获得pagesource时,只返回leftside中的链接。我需要单击“立即运行”链接,在HTML中如下所示:
<a href="#" onclick="return false;" actionid="runNow" style="white-space:nowrap">Run now</a>
如有任何评论,我们将不胜感激。
以下是我目前编写的代码:
^{pr2}$
我最后可以通过添加以下代码来完成:
然后:
^{pr2}$隐式等待等待从DOM加载元素。所以这是唯一的解决办法。在
相关问题 更多 >
编程相关推荐