Message: function timed out after 5000 milliseconds - Protractor & CucumberJS

泪湿孤枕 提交于 2019-12-04 17:54:17

You have increased the timeout of spec, but I would suggest increasing the overall PageTimeout and Script Timeout.

These timeouts might override the Cucumber default timeout you are setting from env.js file

Try with something like below

specs: ['./features/*.feature'], allScriptsTimeout: 50000, //This is the overall Timeout getPageTimeout: 50000, //This is the Page timeout cucumberOpts : { require : './features/LoginDefinitions.js', format : 'pretty' }

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!