I'm trying to retrieve the isolated scope on a directive in protractor using the following code:
protractor.executeAsyncScript(function(callback){
var isolatedScope = angular.element("div[my-directive='data']").isolateScope();
callback(isolatedScope);
}).then(function(isolatedScope){
console.log("directive's isolatedScope:", isolatedScope);
});
Unfortunatley I'm getting the following error from Chrome:
UnknownError: Unknown error: Maximum call stack size exceeded (Session info: chrome=34.0.1847.131)