本文介绍了有没有针对“由于页面崩溃而删除会话"的解决方法? Travis CI上的Chrome错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Travis CI上使用基于容器的基础结构(因此我不能使用sudo),并且试图在最新的Chrome稳定器上使用Selenium(量角器)运行测试.当我尝试运行测试时,出现以下错误:session deleted because of page crash,所有测试均失败.

I'm using container-based infrastructure on Travis CI (so I can't use sudo) and I'm trying to run tests using Selenium (Protractor) on the latest Chrome stable. When I try to run the tests, I'm getting this error: session deleted because of page crash and all tests fail.

我发现一个可能的问题是/dev/shm太小,这在docker上运行Chrome时似乎很常见( https://code.google.com/p/chromium/issues/detail?id=522853 ).看起来Travis CI有一些解决方法,但是它们都需要sudo.

I found that one of the possible issues might be too small /dev/shm, which seems to be common when running Chrome on docker (https://code.google.com/p/chromium/issues/detail?id=522853). It looks like there are some workarounds for Travis CI, but they all require sudo.

特拉维斯(Travis)上的集装箱有什么变通办法吗?

Are there any workarounds for containers on Travis?

推荐答案

目前看来,唯一的解决方法是使用Trusty映像(通过.travis.yml文件中的sudo: required, dist: trusty).我的问题中提到的Chromium问题已经修复,应该可以安装在Chrome 49(目前为Canary)中,但是我不确定它是否也可以在docker容器中使用.

Seems like the only workaround at the moment is to use Trusty image (via sudo: required, dist: trusty in .travis.yml file). The Chromium issue mentioned in my question has already been fixed and should land in Chrome 49 (currently Canary), but I'm not sure if it's going to work in docker container anyway.

这篇关于有没有针对“由于页面崩溃而删除会话"的解决方法? Travis CI上的Chrome错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 04:35