python + selenium 弹出Alert提示窗, 自动确认。

alt = browser.switch_to_alert()
alt.accept()

1、返回值对其判断时。str()避免语法错误
2、字典不能有相同的键

猜你喜欢

转载自blog.51cto.com/sonlich/2155666