美文网首页
在selenium中开启webdriver

在selenium中开启webdriver

作者: 分析师_8840 | 来源:发表于2021-09-07 23:34 被阅读0次

不得不说,学技术还是很有意思的。一个接一个问题的来,一个接一个的解决:

先是不知道mac上的chromedirver如何放进代码中,百度出来后,运行代码时出现了第一个报错:

报错1: 'module' object is not callable

攻略后发现,是因为代码中的chrome中,C要大写,改成Chrome就可以了;

接着出现第2个报错:[Errno 86] Bad CPU type in executable: '/Users/user/Downloads/chromedriver'

攻略后发现是因为chromedriver的版本不对,改完版本后再执行,立马成功!

高兴!明天再接力!

相关文章

网友评论

      本文标题:在selenium中开启webdriver

      本文链接:https://www.haomeiwen.com/subject/icemwltx.html