selenium.common.exceptions.WebDriverException处理

今天学习selenum的时候爆出以下错误

selenium.common.exceptions.WebDriverException: Message: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}
(Session info: chrome=68.0.3440.75)
  (Driver info: chromedriver=2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab),platform=Windows NT 10.0.17134 x86_64)

查了一下,说是Chromedrive和chrome版本不匹配,但是我去官网看了一下,发现版本没有错了

然后换一个网址竟然成功了,检查一下才发现传进去的url没有带上https 估计是谷歌认定没有带上https非法吧

原文地址:https://www.cnblogs.com/qunincey/p/9371778.html