PhantomJS挂了很久说:"异步会话清理阶段从现在开始," [英] PhantomJS hangs for a long time saying "Asynchronous Sessions clean-up phase starting NOW"
本文介绍了PhantomJS挂了很久说:"异步会话清理阶段从现在开始,"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
下面是截图:
task : Codeception PHP Testing Framework v1.6.2
Powered by PHPUnit 3.7.19 by Sebastian Bergmann.
Suite selenium_acceptance started
Trying to see the welcome page of newweather (welcomeCept.php)
issue : it sits as it is and waiting for phantomJS to respond and below is what phantomJS screen is showing :
[INFO - 2014-03-13T01:42:51.575Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: ca14e740-aa50-11e3-bb6b-75468ba86108
[INFO - 2014-03-13T01:47:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
[INFO - 2014-03-13T01:52:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
[INFO - 2014-03-13T01:57:42.806Z] SessionManagerReqHand - _cleanupWindowlessSessions - Asynchronous Sessions clean-up phase starting NOW
和它所在的屏幕上没有结果。
And it sits on the screen no results.
这是我用什么:
- PhantomJS版本:1.9.7
- 在端口上运行:4444
推荐答案
这是为我工作的解决方法是将takesScreenshot功能设置为false。
The workaround that worked for me is to set the takesScreenshot capability to false.
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("takesScreenshot", false);
这篇关于PhantomJS挂了很久说:"异步会话清理阶段从现在开始,"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文