diff --git a/run_selenium b/run_selenium new file mode 100755 index 0000000000000000000000000000000000000000..d461bf6855687ee6da494da175d7a82260992d3f --- /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 d5703c74a451250c70e47578138217e2d2a93275..165535f2dce25600e3e0f8e4213851c6b8fcb744 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 87b0e637a2c347568674eb690b40a91a881c714f..1556d65ea93c50dc1b1a91518c9bfc55f9f81e55 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 d3fd42b4d19840fadf5a071a2c9bbb658816cceb..4d9de5f3316f43cd2bed4c206e219ee9180cd1ca 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(); } }; + +*/