Skip to content

Instantly share code, notes, and snippets.

@winsonwq
Last active December 21, 2015 02:59
Show Gist options
  • Save winsonwq/6239305 to your computer and use it in GitHub Desktop.
Save winsonwq/6239305 to your computer and use it in GitHub Desktop.
Viff config file for AAMI prodtest & prod
'use strict'
module.exports = {
seleniumHost: 'http://localhost:4444/wd/hub',
browsers: ['firefox'],
envHosts: {
prodtest: 'http://prodtest.aami.com.au',
prod: 'http://www.aami.com.au'
},
paths: [
// /* whole pages */
'/',
'/car-insurance',
'/car-insurance/third-party-property-car-insurance',
'/car-insurance/car-insurance-comparison',
'/skilled-drivers',
'/sitemap',
'/online-services',
// /* partial */
['/', '#header'],
['/', '#mainnav'],
['/', '#tnt-quick-quote-button .btn-standard'],
['/', '#superfooter'],
['/', '#footer'],
['/', '.hp-box.onlinequote'],
['/retrieve-quote', '.summary-box-wrapper'],
['/retrieve-quote', '.reasons-to-join-panel'],
['/motorcycle-insurance', '.summary-box li:first-child'],
/* clickable */
['/car-insurance/third-party-property-car-insurance', function (driver, webdriver) {
driver.findElement(webdriver.By.css('.accordion-lists h6')).click();
}]
],
reportFormat: 'file' /* 'html' or 'json' */
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment