Can do i use testacular to test web pages that are not not on my localhost? The external app was developed using angularJs
In my test i tried doing
browser().navigateTo('<test app which is not on localhost>');
I cannot verify the url in my test. I get this error :
$location.url()
TypeError: Object [object Object] has no method 'injector'
at Object.<anonymous> (<localhost path>/angular-scenario.js:25407:30)
I encountered the same problem and solved it by adding the following two lines to karma-e2e.conf:
proxies = {'/': 'http://localhost:9000/'}; // assume your app is running on port 9000
urlRoot = '/_karma_/'; // important, could be any non-trivial path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With