Python爬虫中点掉弹窗

Python爬虫项目中遇到有弹窗要点掉,可以用以下的代码

alt=self.driver.switch_to_alert()
alt.accept()
发布了189 篇原创文章 · 获赞 13 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/NewBeeMu/article/details/105042053