Skip to content
Snippets Groups Projects
Commit c6cbd5c8 authored by Janos Bekesi's avatar Janos Bekesi :moyai:
Browse files

selenium starter; some more, use --env chrome for chromedriver

parent 7f87f78a
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# starting selenium server (uses phantomjs)
# echo args: $*
java -jar ${HOME}/Code/misc/webtesting/bin/selenium-server-standalone-3.1.0.jar
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"browserName": "phantomjs", "browserName": "phantomjs",
"javascriptEnabled": true, "javascriptEnabled": true,
"acceptSslCerts": 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.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", "phantomjs.cli.args": ["--ignore-ssl-errors=true",
"--ssl-protocol=tlsv1", "--ssl-protocol=tlsv1",
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
"chrome" : { "chrome" : {
"desiredCapabilities": { "desiredCapabilities": {
"browserName": "chrome", "browserName": "chrome",
"chrome.binary.path" : "../bin/chromedriver" "chrome.binary.path" : "./bin/chromedriver"
} }
}, },
......
...@@ -10,9 +10,9 @@ module.exports = { ...@@ -10,9 +10,9 @@ module.exports = {
.waitForElementVisible('body', 1000) .waitForElementVisible('body', 1000)
.assert.title('University of Vienna Phaidra') .assert.title('University of Vienna Phaidra')
.assert.visible('input[type=search]') .assert.visible('input[type=search]')
.setValue('input[type=search]', 'hudak') .setValue('input[type=search]#input-0', 'hudak')
.click('input[type=search]') .click('input[type=search]#input-0')
.waitForElementVisible('span.md-caption', 1000) .assert.visible('md-list.layout-padding', 500)
.click('a[title="Fedora 3.8.1 deploy files]') .click('a[title="Fedora 3.8.1 deploy files]')
.pause(1000) .pause(1000)
.assert.containsText('h3.md-title ul li a', .assert.containsText('h3.md-title ul li a',
......
...@@ -5,6 +5,7 @@ http://nightwatchjs.org/ ...@@ -5,6 +5,7 @@ http://nightwatchjs.org/
slightly adopted for time passed in google land ;-) slightly adopted for time passed in google land ;-)
*/ */
/*
module.exports = { module.exports = {
'Demo test Google' : function (client) { 'Demo test Google' : function (client) {
client client
...@@ -21,3 +22,5 @@ module.exports = { ...@@ -21,3 +22,5 @@ module.exports = {
.end(); .end();
} }
}; };
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment