Make Selenium wait for ajax calls using AngularJS (and TypeScript)

Hallstein Brøtan

Acceptance tests for GUI are commonly regarded as painful, mainly caused by two factors: They have a long feedback loop Their stability is poor A common stability issue is dealing with asynchronous requests. Because ajax calls takes an unknown amount of time to complete, the test might do some assertion…