Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ with your query.

Unable to get angularjs scope

edited September 2018 in Sahi Pro
I can't get the angularjs scope from a web page, I've tried to get it with the following code:

var $scope = window.angular.element(document.body).scope();

When I play the script, it generate the following error
Logging exception: Cannot call method "element" of undefined
Cannot call method "element" of undefined

Changing the Evaluate Expression mode, from Sahi-Browser to JS, in Sahi Controller, the code works correctly, so the problem would be Sahi evaluated mode .

Any idea to process the code with JS mode on playback?

Sign In or Register to comment.