您当前的位置: 首页 >  Python

星拱北辰

暂无认证

  • 0浏览

    0关注

    1205博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【Python】处理 TypeError: ‘FirefoxWebElement‘ object is not iterable

星拱北辰 发布时间:2020-10-12 21:00:57 ,浏览量:0

文章目录
  • selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
  • TypeError: 'FirefoxWebElement' object is not iterable

selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH

安装selenium的话,使用pip即可:pip install selenium

但是安装成功后运行会报错:selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to be in PATH.

主要原因可能是没有安装对应的浏览器驱动程序。

我常使用Firefox,其对应驱动的Github地址

关注
打赏
1660750074
查看更多评论
立即登录/注册

微信扫码登录

0.0508s