下载seleniumRC
启动selenium server: java -jar selenium-server.jar
下载python的selenium包
如果python里有pip install -U selenium
自动下载安装后,selenium包自动安装到python的lib里
IE
self.selenium = selenium("localhost", 4444, "*iexplore", "http://www.baidu.com/")
chrome
self.selenium = selenium("localhost", 4444, "*googlechrome", "http://www.baidu.com/")
firefox