selenium 相关资料

文档

Selenium Python Bindings
Selenium Documentation
WebDriver Living Document

网站

techbeamers
softwaretestingstudio

toolsqa
WebDriver中文社区
乙醇的blog
灰蓝博客
灰蓝GITHUB

学习路径

  1. 学习路径-成神之路

    业内牛人

  2. hyddd(陈曦明)
  3. ‘FirefoxWebElement’ object is not iterable
    .wcommonFeed > ul:nth-child(2) > li:nth-child(13) > div:nth-child(2)

相关技术

excel读写操作

xlrd、xlwt操作excel文件
Selenium2+Python–操作Excel读写

xml读写操作

json-yaml读写操作

日志模块logging库

Selenium2+Python–日志管理实例

自动发送报告-Jenkins

界面-Django、flask、web2py、web.py

打包成exe

py2exe

About

写好了Python selenium脚本,到其他机器上运行,还得要在其他机器上也装一套Python的环境,尤其在你用了一些第三方库的时候,甚至还要顾及操作系统是32位还是64位,是不是很坑,如果能打成一个exe就好了,不论32位还是64位,只要拷过去,安装合适版本的浏览器就行了。今天博主就带你将你的py脚本打包成一个exe

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
C:\Users\Administrator>pip search py2exe
py-exe-builder (0.1) - Uses py2exe to create small exe stubs
that leverage a full python installation,
rather than packing the required pyc
files in to the executable.
Manual-de-Py2Exe-en-Espa-ol (1.0) - Manual de Py2Exe en Espa帽ol
PyBuilder-for-Py2exe (0.3) - A tool to asist in compiling python
scripts with py2exe
py2exe (0.9.2.2) - Build standalone executables for Windows
(python 3 version)
py2exe2msi (0.0.2) - An easy way to create Windows standalone
applications in Python
py2exe_py2 (0.6.9) - A wheel of Py2exe for Python 2
unpy2exe (0.3) - Extract pyc files from py2exe executable.
  1. 打开CMD窗口,将工作目录切换到python文件所在文件夹,并输入命令“python setup.py py2exe”