2
我如何打开硒webdriver(火狐)新选项卡上的链接?硒和新标签
<a href='/test' id='test'>Link</a>
driver.find_element_by_id('test').click()
我如何打开硒webdriver(火狐)新选项卡上的链接?硒和新标签
<a href='/test' id='test'>Link</a>
driver.find_element_by_id('test').click()
看起来你现在最好的选择是在页面中注入一个锚标签。你需要适应python,但它应该是相对简单的:https://stackoverflow.com/a/9122450/39843