#!/usr/bin/env python # -*- coding: utf-8 -*- ''' @Auther :liuyuqi.gov@msn.cn @Time :2018/4/11 15:31 @File :test-phantomjs.py ''' from selenium import webdriver print(0) driver = webdriver.PhantomJS(executable_path='D:/Program-Files/-2.1.1-windows/bin') print(1) driver.get('http://www.baidu.com') print(2) print(driver.title)