Is it possible to access the isolated scope of a directive with Protractor using this code snippet?
protractor.executeAsyncScript(function(callback){
var isoScope = angular.element("div[my-directive='data']").isolateScope();
callback(isoScope);
}).then(function(isoScope){
console.log("Directive's isolated scope:", isoScope);
});
However, an issue arises when trying to execute the code in Chrome:
UnknownError: Unknown error: Maximum call stack size exceeded (Session info: chrome=34.0.1847.131)