Phantomjs + Alert 交互時Enter鍵輸入無效【已知問題,無解】

 

代碼: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

相關文章
相關標籤/搜索