ruby-on-rails – webkit_server无法找到可执行文件
发布时间:2020-12-17 02:02:02 所属栏目:百科 来源:网络整理
导读:我正在使用Capybara来测试我的Rails应用程序. 我需要测试一些javascript,所以我设置了webkit来测试那些页面(不记得所有步骤,几个月前做过).这是几个月前的一个这样的规范,效果很好: describe "user fills in form",js: true,driver: :webkit do...end 这个
我正在使用Capybara来测试我的Rails应用程序.
我需要测试一些javascript,所以我设置了webkit来测试那些页面(不记得所有步骤,几个月前做过).这是几个月前的一个这样的规范,效果很好: describe "user fills in form",js: true,driver: :webkit do ... end 这个规范执行并传递得很好. 我制作了一个新的规范,并有这个规范: describe "check player",driver: :webkit do ... end 我收到这个错误: 2012-05-28 10:24:48.771 webkit_server[6274:207] Cannot find executable for CFBundle 0x104552dc0 </Library/Internet Plug-Ins/Unused> (not loaded) 2012-05-28 10:24:48.885 webkit_server[6274:207] Error loading /Applications/Amazon MP3 Downloader.app/Contents/Resources/AmazonMP3DownloaderPlugin.plugin/Contents/MacOS/AmazonMP3DownloaderPlugin: dlopen(/Applications/Amazon MP3 Downloader.app/Contents/Resources/AmazonMP3DownloaderPlugin.plugin/Contents/MacOS/AmazonMP3DownloaderPlugin,262): no suitable image found. Did find: /Applications/Amazon MP3 Downloader.app/Contents/Resources/AmazonMP3DownloaderPlugin.plugin/Contents/MacOS/AmazonMP3DownloaderPlugin: no matching architecture in universal wrapper objc[6274]: Class WebCoreMovieObserver is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined. objc[6274]: Class WebCoreSharedBufferData is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined. objc[6274]: Class WebVideoFullscreenWindow is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. objc[6274]: Class WebVideoFullscreenController is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. objc[6274]: Class WebVideoFullscreenHUDWindowController is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. objc[6274]: Class WebVideoFullscreenHUDWindow is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. objc[6274]: Class WebWindowFadeAnimation is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. objc[6274]: Class WebWindowScaleAnimation is implemented in both /usr/local/Cellar/qt/4.8.0/lib/QtWebKit.framework/Versions/4/QtWebKit and /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit. One of the two will be used. Which one is undefined. 2012-05-28 10:24:48.981 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin: dlopen(/Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin,262): no suitable image found. Did find: /Library/Internet Plug-Ins/npgtpo3dautoplugin.plugin/Contents/MacOS/npgtpo3dautoplugin: mach-o,but wrong architecture 2012-05-28 10:24:49.215 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore: dlopen(/Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore,262): no suitable image found. Did find: /Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore: mach-o,but wrong architecture 2012-05-28 10:24:49.262 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin: dlopen(/Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin,262): no suitable image found. Did find: /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin/Contents/MacOS/googletalkbrowserplugin: mach-o,but wrong architecture 2012-05-28 10:24:49.304 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: dlopen(/Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin,265): no suitable image found. Did find: /Library/Internet Plug-Ins/QuickTime Plugin.plugin/Contents/MacOS/QuickTime Plugin: mach-o,but wrong architecture 2012-05-28 10:24:49.356 webkit_server[6274:207] Error loading /Users/Tyler/Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin/Contents/MacOS/libnpgeplugin.dylib: dlopen(/Users/Tyler/Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin/Contents/MacOS/libnpgeplugin.dylib,265): no suitable image found. Did find: /Users/Tyler/Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin/Contents/MacOS/libnpgeplugin.dylib: mach-o,but wrong architecture 2012-05-28 10:24:49.454 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/net.juniper.DSSafariExtensions.plugin/Contents/MacOS/net.juniper.DSSafariExtensions: dlopen(/Library/Internet Plug-Ins/net.juniper.DSSafariExtensions.plugin/Contents/MacOS/net.juniper.DSSafariExtensions,262): no suitable image found. Did find: /Library/Internet Plug-Ins/net.juniper.DSSafariExtensions.plugin/Contents/MacOS/net.juniper.DSSafariExtensions: mach-o,but wrong architecture 2012-05-28 10:24:49.823 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/SlingPlayer.plugin/Contents/MacOS/SlingPlayer: dlopen(/Library/Internet Plug-Ins/SlingPlayer.plugin/Contents/MacOS/SlingPlayer,262): no suitable image found. Did find: /Library/Internet Plug-Ins/SlingPlayer.plugin/Contents/MacOS/SlingPlayer: mach-o,but wrong architecture 2012-05-28 10:24:49.887 webkit_server[6274:207] Error loading /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player: dlopen(/Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player,262): no suitable image found. Did find: /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/MacOS/Unity Web Player: no matching architecture in universal wrapper 奇怪的是,如果我运行我的应用程序的所有规格,第一个(使用webkit驱动程序)工作.它只是引发此错误的新规范. 解决方法
您可能在加载webkit时遇到了这个已知问题:
https://github.com/thoughtbot/capybara-webkit/issues/157 也许清理你的Internet Plug In目录会有帮助吗? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |