【发布时间】:2014-08-18 11:30:22
【问题描述】:
使用 python 和 selenium,代码片段:
alert = driver.switch_to_alert().accept()
通过运行代码,我得到:
Warning (from warnings module):
File "C:\Python34\selenium\webdriver\remote\webdriver.py", line 517
warnings.warn("use driver.switch_to.alert instead", DeprecationWarning)
DeprecationWarning: use driver.switch_to.alert instead
这个我不明白,我刚才不是用了driver.switch_to.alert吗?
【问题讨论】: