使用selenium包下switch_to_window方法时出现“ DeprecationWarning “

使用selenium包下switch_to_window方法时出现" DeprecationWarning "


(1)出现的问题如下

在这里插入图片描述


(2)解决方法

switch_to_window方法已过期,使用switch_to.window方法来代替


————————————————
版权声明:本文为CSDN博主「在路上的小王」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

猜你喜欢

转载自blog.csdn.net/m0_48915964/article/details/115770872
今日推荐