当量角器开始测试时,Chrome浏览器不会出现。

时间:2021-05-10 20:22:35

I'm wondering why my Chrome browser doesn't show when I start testing my angularjs app with protractor. It does execute the test though. I can see the output on my console.

我想知道为什么当我开始用量角器测试我的angularjs应用时,我的Chrome浏览器没有显示出来。但它确实执行了测试。我可以看到控制台的输出。

However, if I change the value of browserName to point to firefox and rerun protractor, Firefox will fire up. I'll also see protractor doing its test on the browser.

但是,如果我将browserName的值更改为指向firefox并重新运行量角器,firefox就会启动。我还会在浏览器上看到量角器在做测试。

1 个解决方案

#1


3  

I also had the impression that my Chrome was not showing up, but I just did not see it as I had too many open Chrome browser windows to even notice the one extra. The real reason I did not see it, was, that I was in full screen mode and the chrome window could not go to the forground as MacOS does not always allow this to happen.

我还有一个印象,我的Chrome没有显示,但我只是没有看到它,因为我有太多的开放Chrome浏览器窗口,甚至没有注意到一个额外的窗口。我没有看到它的真正原因是,我处于全屏模式,chrome窗口不能进入forground,因为MacOS并不总是允许这种情况发生。

For me I quit my usual Chrome session and then I saw that there was actually a new Chrome session appearing as I started the tests. (I know this is so obvious, but after a long day at work the most obvious things can sometimes lead to be puzzled. So this answer is for the ones who just happened have a bad day ;) )

对我来说,我退出了我通常的Chrome会话,然后我看到在我开始测试时,实际上出现了一个新的Chrome会话。(我知道这是显而易见的,但在工作了一整天之后,最显而易见的事情有时会让人感到困惑。所以这个答案是针对那些刚刚经历了糟糕的一天的人

#1


3  

I also had the impression that my Chrome was not showing up, but I just did not see it as I had too many open Chrome browser windows to even notice the one extra. The real reason I did not see it, was, that I was in full screen mode and the chrome window could not go to the forground as MacOS does not always allow this to happen.

我还有一个印象,我的Chrome没有显示,但我只是没有看到它,因为我有太多的开放Chrome浏览器窗口,甚至没有注意到一个额外的窗口。我没有看到它的真正原因是,我处于全屏模式,chrome窗口不能进入forground,因为MacOS并不总是允许这种情况发生。

For me I quit my usual Chrome session and then I saw that there was actually a new Chrome session appearing as I started the tests. (I know this is so obvious, but after a long day at work the most obvious things can sometimes lead to be puzzled. So this answer is for the ones who just happened have a bad day ;) )

对我来说,我退出了我通常的Chrome会话,然后我看到在我开始测试时,实际上出现了一个新的Chrome会话。(我知道这是显而易见的,但在工作了一整天之后,最显而易见的事情有时会让人感到困惑。所以这个答案是针对那些刚刚经历了糟糕的一天的人