Headless Chrome Selenium (2016) at TravisCI

Chrome now has its own silent mode . I would like to configure this to run Selenium tests on TravisCI without Xvfb.

  • Is there an easy way to install Chrome headless binaries in TravisCI, since most recipes start with compiling the mute Chrome from the source

  • Does Selenium need any specific hints when used without Chrome without Chrome.

+4
source share
1 answer

Travis offers the use of a chrome supplement . If you want to run your build on Linux (trusty), all you have to do is specify chrome in your travis file and start the browser in silent mode before you start testing.

dist: trusty
addons:
  chrome: stable
before_install:
  - # start your web application and listen on `localhost`
  - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
0
source

Source: https://habr.com/ru/post/1658542/


All Articles