phantomjs robot framework [Errno 9] Bad file descriptor

前进

--- xingyunpi


phantomjs + robot framework 在docker里面跑的时候,总是出错,网上这样的解决方案并不是很多,写下来记录一下,供他人参考.

错误提示:

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: WebDriverException: Message: Variable Resource Not Found - {"headers":{"Accept":"application/json","Accept-Encoding":"identity","Connection":"close","Content-Type":"application/json;charset=UTF-8","Host":"127.0.0.1:33799","User-Agent":"Python http auth"},"httpVersion":"1.1","method":"GET","url":"/session/b092d610-77f7-11e7-bdc8-e7ce409f6da2/screenshot","urlParsed":{"anchor":"","query":"","file":"screenshot","directory":"/session/b092d610-77f7-11e7-bdc8-e7ce409f6da2/","path":"/session/b092d610-77f7-11e7-bdc8-e7ce409f6da2/screenshot","relative":"/session/b092d610-77f7-11e7-bdc8-e7ce409f6da2/screenshot","port":"","host":"","password":"","user":"","userInfo":"","authority":"","protocol":"","source":"/session/b092d610-77f7-11e7-bdc8-e7ce409f6da2/screenshot","queryKey":{},"chunks":["session","b092d610-77f7-11e7-bdc8-e7ce409f6da2","screenshot"]}}


phone-invalid | FAIL |
OSError: [Errno 9] Bad file descriptor

原因:

robot的脚本里写了: close all browsers

解决:

Remove “close all browsers” in the test case scripts when using phantomjs as browser.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值