A. 如何用python的splinter操控一个已打开的网页
browser = selenum.webdriver.get("网址") browser.find_element_by_xpath(//路径/a).text
B. python和splinter怎么关联起来
你要是单独下载的话,应该里面有setup.py文件,你需要用一条命令:
python或者python3setup.pyinstall
当然安装python第三方库时,不建议这么搞,麻烦。最好用pip方式来安装,比如:
pipinstallsplinter
或者
pip3installsplinter
以上两种方式分别对应python2和python3来说的。
C. 使用Python和Splinter打开了chrome没有动态提示是怎么回事
a.看chrome版本。
b.看版本对应的驱动:http://blog.csdn.net/huilan_same/article/details/51896672
c.下载驱动(国内镜像):http://npm.taobao.org/mirrors/chromedriver/
d.配置chromedriver地址到环境变量。或者把chromedriver.exe放到python下的Scripts文件夹下。
e.重启python交互窗口,重新执行代码。
D. 如何python和splinter自动化测试脚本
方法如下: 1. 如果安装了easy_install或pip, 用easy_install splinter或pip install splinter 2. 到http://pypi.python.org/pypi/splinter下载压缩包, 解压, 在命令行下进入解压目录, 执行 python setup.py install