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