My e2e.conf.coffee file is:
exports.config =
baseUrl: \'http://localhost:9001\'
specs: [
\'e2e/**/*.coffee\'
]
framework: \'jasmine
Not sure where I picked up the pieces that put this answer at this point, but this is what works for me:
class='ng-app' to the element that contains your app.
rootElement to your protractor.conf.exports.config = {
specs: ['your-spec.js'],
rootElement: ".ng-app"
};
browser.driver.get not browser.get.describe('foobar element', function() {
it('should be "baz" after view is initialized', function() {
browser.driver.get('http://localhost/view');
var inputBox = $('input[name=foobar]');
expect(inputBox.getAttribute('value')).toEqual("baz");
});
});