From c6cbd5c88edf6f2f3f7ad680156f4221ec320924 Mon Sep 17 00:00:00 2001
From: Janos Bekesi <janos.bekesi@univie.ac.at>
Date: Thu, 19 Oct 2017 12:01:25 +0200
Subject: [PATCH] selenium starter; some more, use --env chrome for
 chromedriver

---
 run_selenium                     | 4 ++++
 test-nw/nightwatch.json          | 4 ++--
 test-nw/tests/phaidra_rasta.js   | 6 +++---
 test-nw/tests/rembrandtGoogle.js | 3 +++
 4 files changed, 12 insertions(+), 5 deletions(-)
 create mode 100755 run_selenium

diff --git a/run_selenium b/run_selenium
new file mode 100755
index 0000000..d461bf6
--- /dev/null
+++ b/run_selenium
@@ -0,0 +1,4 @@
+#!/bin/sh
+# starting selenium server (uses phantomjs)
+# echo args: $*
+java -jar ${HOME}/Code/misc/webtesting/bin/selenium-server-standalone-3.1.0.jar
diff --git a/test-nw/nightwatch.json b/test-nw/nightwatch.json
index d5703c7..165535f 100644
--- a/test-nw/nightwatch.json
+++ b/test-nw/nightwatch.json
@@ -33,7 +33,7 @@
         "browserName": "phantomjs",
         "javascriptEnabled": true,
         "acceptSslCerts": true,
-        "phantomjs.binary.path": "../bin/phantomjs",
+        "phantomjs.binary.path": "./bin/phantomjs",
         "phantomjs.page.settings.userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36",
         "phantomjs.cli.args": ["--ignore-ssl-errors=true",
           "--ssl-protocol=tlsv1",
@@ -45,7 +45,7 @@
     "chrome" : {
       "desiredCapabilities": {
         "browserName": "chrome",
-        "chrome.binary.path" : "../bin/chromedriver"
+        "chrome.binary.path" : "./bin/chromedriver"
       }
     },
 
diff --git a/test-nw/tests/phaidra_rasta.js b/test-nw/tests/phaidra_rasta.js
index 87b0e63..1556d65 100644
--- a/test-nw/tests/phaidra_rasta.js
+++ b/test-nw/tests/phaidra_rasta.js
@@ -10,9 +10,9 @@ module.exports = {
       .waitForElementVisible('body', 1000)
       .assert.title('University of Vienna Phaidra')
       .assert.visible('input[type=search]')
-      .setValue('input[type=search]', 'hudak')
-      .click('input[type=search]')
-      .waitForElementVisible('span.md-caption', 1000)
+      .setValue('input[type=search]#input-0', 'hudak')
+      .click('input[type=search]#input-0')
+      .assert.visible('md-list.layout-padding', 500)
       .click('a[title="Fedora 3.8.1 deploy files]')
       .pause(1000)
       .assert.containsText('h3.md-title ul li a',
diff --git a/test-nw/tests/rembrandtGoogle.js b/test-nw/tests/rembrandtGoogle.js
index d3fd42b..4d9de5f 100644
--- a/test-nw/tests/rembrandtGoogle.js
+++ b/test-nw/tests/rembrandtGoogle.js
@@ -5,6 +5,7 @@ http://nightwatchjs.org/
 slightly adopted for time passed in google land ;-)
 
 */
+/*
 module.exports = {
   'Demo test Google' : function (client) {
     client
@@ -21,3 +22,5 @@ module.exports = {
       .end();
   }
 };
+
+*/
-- 
GitLab