Testacular error: Cannot start chrome [closed]

徘徊边缘 提交于 2019-12-25 01:35:49

问题


I am going through AngularJS tutorials, and I am stuck on the tutorial for running Testacular tests. I get the following error:

Starting Testacular Server (http://vojtajina.github.com/testacular)
-------------------------------------------------------------------
info: Testacular server started at http://localhost:9876/
info (launcher): Starting browser Chrome
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

info (launcher): Trying to start Chrome again.
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

info (launcher): Trying to start Chrome again.
error (launcher): Cannot start Chrome
    execvp(): No such file or directory

When I search for the problem, there are similar users that have this problem but they are using Windows. I am using Linux Mint.


回答1:


It is just a small problem in config files' list of browsers. You should change the name of the browser in the configuration files under config/ directory: config/testacular.conf.js and testacular-e2e.conf.js. If you are using chromium browser set the list of browsers to 'chromium-browse', instead of 'Chrome' like this.:

browsers = ['chromium-browser'];

Here is an ss of my testacular.conf.js file:

.

If you would like to include more than one browser for you tests you can add the name of the other browsers installed in your system:

browsers = ['chromium-browser', 'firefox'];

If you are not sure about the name of your chrome browser this should help in the terminal:

ls /usr/bin/ | grep -i chrom


来源:https://stackoverflow.com/questions/14916619/testacular-error-cannot-start-chrome

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