I am trying to write some end to end tests and waned to use async and await.
configuration file
exports.config = {
framework: \'jasmine\',
Earlier All I needed to add this in my script.js browser.driver.ignoreSynchronization = true;
However adding this solved my problem. browser.waitForAngularEnabled(false);
So altogether final script.js is
describe('My first non angular class', function() {
it('My function', function() {
browser.driver.ignoreSynchronization = true;
browser.waitForAngularEnabled(false);
browser.driver.manage().window().maximize();
//browser.get('http://juliemr.github.io/protractor-demo/');
browser.driver.get('https://stackoverflow.com/users/login');
element(by.id('email')).sendKeys('6');
})
})