Last active
October 15, 2015 16:15
-
-
Save F1LT3R/8748333c3523daf0d6d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Trying to get the controller's $scope | |
browser.executeScript(function () { | |
return angular.element(document.getElementById('app')).scope(); | |
}).then(function($scope){ | |
console.log($scope); | |
}); | |
// Returns null for me even though my controller is running in #app element |
Author
F1LT3R
commented
Oct 15, 2015
function getAngularVersion() {
return window.angular.version.full;
}
browser.executeScript(getAngularVersion).then(function (version) {
console.log(version);
});
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment