博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
selenium踩坑集
阅读量:3938 次
发布时间:2019-05-23

本文共 384 字,大约阅读时间需要 1 分钟。

关于selenium踩坑

1.因为我之前安装的是谷歌驱动8.0因为谷歌驱动自动更新的原因所有运行不了
2.所有要换个版本
在这里插入图片描述
我换了版本之后添加环境变量路径在执行结果发现还是没用就出现现在的情况 找了一下资料 在c盘会有一个存放谷歌文件的目录 如下图所示
chromedriven’可执行文件需要在PATH中。请仔细eehtts: / /网站,ole.com/a/cromiun.ong/chromedriver/nome

在这里插入图片描述

from selenium import webdriverurl = 'http://www.baidu.com'driver = webdriver.Chrome(r'C:\Program Files\Google\Chrome\Application\chromedriver.exe')driver.get(url)

发现已经可以成功运行了

在这里插入图片描述

转载地址:http://hoywi.baihongyu.com/

你可能感兴趣的文章
the jacobian matrix and the gradient matrix
查看>>
VS2010 将背景设为保护色
查看>>
ubutun里面用命令行安装软件
查看>>
ubuntu 常用命令
查看>>
SQLite Tutorial 4 : How to export SQLite file into CSV or Excel file
查看>>
Optimizate objective function in matrix
查看>>
Convert polygon faces to triangles or quadrangles
查看>>
read obj in matlab
查看>>
find out the neighbour matrix of a mesh
查看>>
Operators and special characters in matlab
查看>>
As-Conformal-As-Possible Surface Registration
查看>>
qmake Variable Reference
查看>>
Lesson 2 Gradient Desent
查看>>
find border vertex
查看>>
matlab sliced variable
查看>>
create symbolic array
查看>>
TAUCS库的编译(vs2010)
查看>>
color vector using in plotting example points and lines between corresponding vertices
查看>>
mex 里面调用matlab函数
查看>>
matlab中cuda编程中分配grid和block dimension的时候的注意事项
查看>>