代碼:git
driver.switch_to.alert.accept()
報錯:github
Exception:session
org.openqa.selenium.UnsupportedCommandException: Invalid Command Method - Request => {"headers":{...},"httpVersion":"1.1","method":"GET","url":"/alert_text","urlParsed":{...},"urlOriginal":"/session/13ddee20-110f-11e3-af52-a75f21929065/alert_text"}url
在網上找了不少種方法,一直無解;spa
https://github.com/detro/ghostdriver/issues/203d
論壇討論詳情;selenium