I am trying to use protractor for e2e testing but first I need to login on a non-angular page. I try to directly use the webDriver as indicated here but it fails.
My e2e test:
describe('angularjs homepage', function() {
it('should prompt the login page', function() {
browser.get('/');
expect(browser.driver.find(By.id('user_password')));
});
});
My logs:
Running "protractor:all" (protractor) task
Using the selenium server at http://localhost:4444/wd/hub
F
Failures:
1) angularjs homepage should prompt the login page
Message:
TypeError: Object [object Object] has no method 'find'
Do you know a solution?