Skip to content

Commit 169cba4

Browse files
committed
Updated dependencies script to install geckodriver (new requirement for FF profile), and the latest PhantomJS (which fixes issues where screenshots were not being saved)
1 parent 277ef2b commit 169cba4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

install-dependencies.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,20 @@ pip install -r requirements.txt
2626
#apt-get install -y phantomjs
2727

2828
# Grab the latest of phantomjs it directly from the source
29-
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
29+
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
3030

31-
phantom_md5sum=`md5sum phantomjs-1.9.8-linux-x86_64.tar.bz2 | cut -d' ' -f1`
32-
checksum="4ea7aa79e45fbc487a63ef4788a18ef7"
31+
phantom_md5sum=`md5sum phantomjs-2.1.1-linux-x86_64.tar.bz2 | cut -d' ' -f1`
32+
checksum="1c947d57fce2f21ce0b43fe2ed7cd361"
3333

3434
if [ "$phantom_md5sum" != "$checksum" ]
3535
then
3636
echo "phantomjs checksum mismatch"
3737
exit 254
3838
fi
3939

40-
tar xvf phantomjs-1.9.8-linux-x86_64.tar.bz2
41-
mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
40+
tar xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
41+
mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
4242

43+
wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
44+
tar xzvf geckodriver-v0.11.1-linux64.tar.gz
45+
mv geckodriver /usr/bin/geckodriver

0 commit comments

Comments
 (0)