1

Am getting an error in travis when running my tox tests after adding some selenium testing. I attempted to follow the Travis docs here. However, I am getting this error:

selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect.

Below is my .travis.yml file. Any ideas why this wouldn't be working? Here is an example of the test case I am running (from another question).

.travis.yml

language: python
python: 3.5
sudo: false
env:
    - TOX_ENV=py34-django18
    # many more environments follow
install:
    - pip install tox coveralls
script:
    - tox -e $TOX_ENV
after_success: coveralls
before_install:
    - "export DISPLAY=:99.0"
    - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"

What am I missing?

Community
  • 1
  • 1
thornomad
  • 6,707
  • 10
  • 53
  • 78
  • Maybe this can help. http://stackoverflow.com/questions/13039530/unable-to-call-firefox-from-selenium-in-python-on-aws-machine – Rahul Gupta Oct 08 '15 at 05:25

1 Answers1

0

In my case, I just passed the DISPLAY environment in tox config to the test environment.

[testenv]
passenv = 
       DISPLAY
mbacho
  • 1