File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed
Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- sudo apt-get update
4-
53if [ ! -f " /usr/local/bin/composer" ]; then
64 echo " Installing Composer"
75 php -r " readfile('https://getcomposer.org/installer');" | sudo php -d apc.enable_cli=0 -- --install-dir=/usr/local/bin --filename=composer
@@ -23,6 +21,12 @@ sudo sed -i "s/^autostart=.*python-webserver$/autostart=true/" /etc/supervisor/c
2321echo " Installing Firefox"
2422sudo apt-get install firefox -y --no-install-recommends
2523
24+ echo " Installing Java 8"
25+ sudo apt-add-repository ppa:openjdk-r/ppa -y
26+ sudo apt-get update
27+ sudo apt-get install openjdk-8-jre-headless -y --no-install-recommends
28+ sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
29+
2630if [ ! -f " $SELENIUM_JAR " ]; then
2731 echo " Downloading Selenium"
2832 sudo mkdir -p $( dirname " $SELENIUM_JAR " )
Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ apt-get update
1111apt-get install software-properties-common -y
1212apt-get install python-software-properties -y
1313
14- apt-add-repository ppa:ondrej/php5-5.6 -y
15- apt-add-repository ppa:openjdk-r/ppa -y
14+ apt-add-repository ppa:ondrej/php -y
1615
1716apt-get update
1817
1918# installing xvfb, java and php
20- apt-get install xvfb openjdk-8-jre-headless php5-cli php5-curl php5-xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends
19+ apt-get install xvfb php5.6 -cli php5.6 -curl php5.6-xml php -xdebug ncurses-term unzip xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic vim -y --no-install-recommends
2120
Original file line number Diff line number Diff line change @@ -507,4 +507,17 @@ public function setUpPage()
507507 {
508508
509509 }
510+
511+ /**
512+ * Check whether an alert box is present
513+ */
514+ public function alertIsPresent ()
515+ {
516+ try {
517+ $ this ->alertText ();
518+ return TRUE ;
519+ } catch (Exception $ e ) {
520+ return NULL ;
521+ }
522+ }
510523}
Original file line number Diff line number Diff line change 1+ PHPUNIT-Selenium [ ![ Build Status] ( https://api.travis-ci.org/giorgiosironi/phpunit-selenium.svg?branch=2.x )] ( https://travis-ci.org/giorgiosironi/phpunit-selenium/branches )
2+ -
13This package contains a Selenium2TestCase class that can be used to run end-to-end tests against Selenium 2.
24
35Installing
You can’t perform that action at this time.
0 commit comments