我正在尝试使用Python中的Selenium来单击网页上的报告链接。我有它的工作点,它打开的页面,报告是在,但我有麻烦,实际上点击具体的报告。你知道吗
该页面有一个报表列表,所有报表都具有相同的类。这是我在检查特定报告时得到的结果,例如:
<a class="rpt" href="reportConfigRedirect.asp?action=filter&rc_id=181786&letter=">Run with new filters</a>
我试过:
driver.find_element_by_xpath("xpath")
而这似乎不起作用,一旦到了报告的那一页,它就什么也做不了。你知道吗
归纳
WebdriverWait
和element_to_be_clickable
。你知道吗如果无法使用Webdriver单击,请尝试使用javascript executor。你知道吗
编辑
或者
相关问题 更多 >
编程相关推荐