Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Last active January 3, 2017 23:09
Show Gist options
  • Save marcelmokos/ebafefe0f794bf1994ac3f6ad947c2ca to your computer and use it in GitHub Desktop.
Save marcelmokos/ebafefe0f794bf1994ac3f6ad947c2ca to your computer and use it in GitHub Desktop.
protractor usage with non angular applications
export const config = {
//...
onPrepare: function () {
/**
* If you are testing against a non-angular site - set ignoreSynchronization setting to true
*
* If true, Protractor will not attempt to synchronize with the page before
* performing actions. This can be harmful because Protractor will not wait
* until $timeouts and $http calls have been processed, which can cause
* tests to become flaky. This should be used only when necessary, such as
* when a page continuously polls an API using $timeout.
*
* @type {boolean}
*/
browser.ignoreSynchronization = true;
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment