The http-backend-proxy module on npm will let you configure the 
$httpBackend proxy service from within protractor. 
 See: https://www.npmjs.org/package/http-backend-proxy

On Monday, November 25, 2013 6:47:18 PM UTC-5, OpenNota wrote:
>
> How can I get access to the $httpBackend service in a Protractor test?
>>
>
> Assuming that ng-app directive is hosted by the html element, you can do 
> something like this (not tested):
>
> browser.driver.executeScript(
>   "var $injector = 
> angular.element(document.documentElement).data('$injector');" +
>   "return $injector.get('$httpBackend');")
> . then(function ($httpBackend) {
>   // do something with $httpBackend
> })
>
> If there's a more elegant solution, I would like to hear of it.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to