Skip to content

Instantly share code, notes, and snippets.

@winsonwq
Created August 15, 2013 09:07
Show Gist options
  • Save winsonwq/6239442 to your computer and use it in GitHub Desktop.
Save winsonwq/6239442 to your computer and use it in GitHub Desktop.
viff test for sunbk
'use strict'
module.exports = {
seleniumHost: 'http://localhost:4444/wd/hub',
browsers: ['firefox'/*, 'chrome', 'safari', 'opera'*/],
envHosts: {
prodtest: 'http://prodtest.suncorpbank.com.au',
prod: 'http://suncorpbank.com.au'
},
paths: [
// /* whole pages */
'/',
'/bank-accounts',
'/bank-accounts/personal-transactions',
'/bank-accounts/personal-transactions/how-to-guide',
'/sitemap',
'/frequently-asked-questions',
// /* partial */
['/', '#main-content-header'],
['/', '.region-sidebar-second'],
['/', '.pics'],
['/', '.region-content-bottom'],
['/', '.region-header'],
['/', '#page-footer'],
/* clickable */
['/', function (driver, webdriver) {
driver.findElement(webdriver.By.id('search-input')).sendKeys('suncorp');
driver.findElement(webdriver.By.id('go-button')).click();
}]
],
reportFormat: 'file' /* 'html' or 'json' */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment