I'm getting below error:
Failed: Timed out waiting for asynchronous Angular tasks to finish after 11 seconds. This may be because the current page is not an Angular application
I've seen similar question but none of them seems to have a good solution
working on Angular 4
My setup is :
1) onBeforeLaunch :
I'm using webdrive and chromedriver to fetch token for authentication
beforeLaunch(){
const webdriver = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');
const path = require('chromedriver').path;
// do stuff like get token save it in variable
driver.quit();
}
2) onPrepare
browser.params.tokens = token from before launch
3)
it('should authenticate',() => {
browser.get('/home?'+browser.params.token)
expect(browser.getCurrentUrl()).toContain('home');
})
on 3rd step its giving error.
PS: I've tried multiple option like ignoreSync, waitforangularenabled, sleep nothing worked can someone point to me what I'm doing wrong here