phantomjs robot framework [Errno 9] Bad file descriptor
来源:互联网 发布:服装库存软件 编辑:程序博客网 时间:2024/06/02 02:21
前进
--- 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
- phantomjs robot framework [Errno 9] Bad file descriptor
- selenium+phantomjs error:OSError: [Errno 9] Bad file descriptor
- python网络编程报错socket.error: [Errno 9] Bad file descriptor
- mongodb迁移遇问题:couldn't remove fs lock errno:9 Bad file descriptor
- Anaconda Python 2.7 64-bit windows 安装中[Errno 9] Bad file descriptor解决方法
- fabric 支持在linux环境nohup后台运行吗? IOError: [Errno 9] Bad file descriptor
- bad file descriptor
- select error:bad file descriptor
- socket编程时 send: Bad file descriptor
- mysql 中的异常 Bad file descriptor
- sys.setdefaultencoding 引发 [Bad file descriptor]解决
- Http bad file descriptor
- php fpm 启动 错误 Bad file descriptor
- Robot Framework使用Phantomjs进行无界面UI自动化测试
- [CRIU]tty: Can't open 9 (index 0): Bad file descriptor" occurred in the restoring step
- open 创建文件并读写的错误--bad file descriptor
- 套接字编程中,recv error:bad file descriptor
- 套接字编程中,select:bad file descriptor
- 功能展示——顶部筛选框条件选择
- java 四大作用域(public protected default private)
- Swift_构造过程(指定构造器、convenience便利构造器、可失败构造器 init?(...))
- LoadRunner脚本编写之一
- JS内置对象-String对象、Date日期对象、Array数组对象、Math对象
- phantomjs robot framework [Errno 9] Bad file descriptor
- Spring Batch -----Hello world!
- 基础算法之二 直接插入排序的三种实现
- Google面试题:数字计数
- 无法打开包含文件:“C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\mfc\occimpl.h”
- Dagger2
- raw格式数据转BMP格式(OpenCV)
- 如何使用Dockerfile构建镜像
- okhttp3去掉https证书的client