Selenium:报 Failed to read descriptor from node connection: 连到系统上的设备没有发挥作用怎么办

背景

Selenium+ChromeDriver时启动报 Failed to read descriptor from node connection: 连到系统上的设备没有发挥作用。

分析

发现不是一开始就报,所以怀疑是进程或状态问题。

解决

其实,主要原因就是因为开了一个Chrome的Instance但是没有关上,重复打开时就会报这个错,只要先关上Instance即可。

猜你喜欢

转载自blog.csdn.net/weixin_41697242/article/details/123093640#comments_22300240