Install Latest Version of Firefox on Travis And Run with Protractor

自闭症网瘾萝莉.ら 提交于 2019-12-04 13:17:23

I stumbled over the same issue myself and I can confirm that Travis only downloads the specified firefox version.

This is what I did in my build script to use the downloaded version (in my example 43.0).

First, configure the addon in your .travis.yml file:

addons:
  firefox: "43.0"

Now before runing your tests execute these steps:

echo "Extracting firefox and setting PATH variable..."
tar -xjf /tmp/firefox-43.0.tar.bz2 --directory /tmp
export PATH="/tmp/firefox:$PATH"
echo "Using firefox version `firefox --version`"

For a working example see also: https://github.com/astehlik/typo3-extension-news_richteaser/blob/master/.travis.yml

I'm using Selenium in my case but I guess it should work no different with protractor.

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