r - 如何通过 selenium 打开幻影浏览器?
问题描述
我是 Rselenium 和 Phantomjs 的新手,我似乎无法在 R 中打开浏览器。我安装了 Phantomjs,所以我不知道为什么它不会打开。
Selenium message:Unable to create session from {
"desiredCapabilities": {
"browserName": "phantomjs",
"javascriptEnabled": true,
"nativeEvents": true,
"version": "",
"platform": "ANY"
},
"capabilities": {
"firstMatch": [
{
"browserName": "phantomjs"
}
]
}
}
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'application-1005104-deployment-3272410-7j6h7', ip: '172.16.56.211', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-1044-aws', java.version: '1.8.0_212'
Driver info: driver.version: unknown
Could not open phantomjs browser.
Client error message:
Summary: SessionNotCreatedException
Detail: A new session could not be created.
Further Details: run errorDetails method
Check server log for further details.
解决方案
推荐阅读
- python - 如何使用Python找到一定范围内每个偶数的总和?
- javascript - 是否有一个函数可以将函数列表应用于 Ramda 中的值列表?
- python - 合并具有相同索引的数据框列表
- python - 有没有办法从网站下载文件并将其直接上传到 Google Drive?
- arrays - Postgresql 数组总和
- python - 如何使用步幅从单个图像创建多个图像?
- c++ - 我怎样才能尽可能快地做到这一点?- 遍历图像垫
- linux - 在 ubuntu 上更改 PIL 中的 Image.core.jpeglib 版本
- java - 为什么在 Android Studio 中不会逐行执行?
- css - 有没有办法动态改变 ng-cicle-progress CircleProgressComponent 元素的大小?