码迷,mamicode.com
首页 > 其他好文 > 详细

selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

时间:2017-01-09 16:10:17      阅读:3247      评论:0      收藏:0      [点我收藏+]

标签:linux   信息   window   .com   color   screen   protoc   style   tls   

在使用selenium+phantomjs的时候在Windows平台下能够正常工作,在Linux下却不能,并得到错误信息:

selenium.common.exceptions.TimeoutException: Message: 
Screenshot: available via screen

在ST上找到答案:http://stackoverflow.com/a/36159299/4447404

driver = webdriver.PhantomJS(service_args=[--ignore-ssl-errors=true, --ssl-protocol=TLSv1])

在初始化driver时传入参数"service_args=[‘--ignore-ssl-errors=true‘, ‘--ssl-protocol=TLSv1‘]"即可。



 

selenium.common.exceptions.TimeoutException: Message: Screenshot: available via screen

标签:linux   信息   window   .com   color   screen   protoc   style   tls   

原文地址:http://www.cnblogs.com/xzysaber/p/6265357.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!