更新时间:2023-12-01 20:36:34
查看此答案是否有帮助:
http://code.google.com/p/selenium/issues/detail?id = 27#c6
See if this answer helps:
http://code.google.com/p/selenium/issues/detail?id=27#c6
总的来说,该线程引起了与您类似的担忧.您正在尝试将其作为警报来处理,看看是否可以将其作为js确认对话框来处理.
Overall, the thread raises a similar concern as yours. You are trying to handle this as an alert, see if you can handle this as a js confirmation dialog.