I am new to protractor with AngularJS, i am struck up with a login page. 
can someone please help me on this?

Following error is displayed when i try to click on login button:
Error: Error while waiting for Protractor to sync with the page: "angular 
could not be found on the window"


Code:
describe('My homepage:', function() {
  it('should login into the application', function() {
browser.get("url");
element(by.css('[ng-click="login()"]')).click();
browser.driver.findElement(by.id('username')).sendKeys('abc');
browser.driver.findElement(by.id('password')).sendKeys('xyz');
element(by.xpath('//input[contains(text(),"LOGIN")]')).click();
  });
});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to