Closed stefanosusini closed 9 years ago
I imagine this has something to do with your manual bootstrapping, but without knowing how that works I can't help you further. Try replacing browser.get
with browser.driver.get
.
I've tried the modification, but sadly it doesn't work for me.
Unfortunately I cannot bootstrap the application with ng-app
because I'm using require.JS to load my scripts.
I've tried also to load angularjs.org homepage to try if it worked and it did.
If this going to be fixed soon? We are using requirejs too with AngularJS and we are thinking to migrate to 1.3 (soon)! :(
@stefanosusini how does it not work?
If you are doing custom bootstrap, you will probably need some custom browser.wait
function to know when your page is loaded.
This seems like an issue with a couple specific apps and haven't heard any updates, so closing. Please open a new issue if there is a problem we can help with!
Also running into a similar issue around manually bootstrapping (I'm using RequireJS with Angular):
Running "protractor:signup" (protractor) task
Using ChromeDriver directly...
[launcher] Running 1 instances of WebDriver
F.
/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113
var template = new Error(this.message);
^
UnknownError: unknown error: [ng:btstrpd] http://errors.angularjs.org/1.2.28/ng/btstrpd?p0=document
(Session info: chrome=41.0.2272.118)
(Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.14.28-031428-generic x86_64)
at new bot.Error (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18)
at Object.bot.response.checkResponse (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)
at /home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:377:20
at [object Object].promise.ControlFlow.runInFrame_ (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
at [object Object].promise.Callback_.goog.defineClass.notify (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
at [object Object].promise.Promise.notify_ (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
at [object Object].promise.Promise.notifyAll_ (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
at [object Object].goog.async.run.processWorkQueue [as _onTimeout] (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
From: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)
at [object Object].webdriver.WebDriver.schedule (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)
at [object Object].webdriver.WebDriver.Timeouts.setScriptTimeout (/home/ubuntu/Iterable/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1367:23)
at [object Object].Runner.createBrowser (/home/ubuntu/Iterable/node_modules/protractor/lib/runner.js:181:30)
at /home/ubuntu/Iterable/node_modules/protractor/lib/runner.js:257:21
at _fulfilled (/home/ubuntu/Iterable/node_modules/protractor/node_modules/q/q.js:797:54)
at self.promiseDispatch.done (/home/ubuntu/Iterable/node_modules/protractor/node_modules/q/q.js:826:30)
at Promise.promise.promiseDispatch (/home/ubuntu/Iterable/node_modules/protractor/node_modules/q/q.js:759:13)
at /home/ubuntu/Iterable/node_modules/protractor/node_modules/q/q.js:573:44
at flush (/home/ubuntu/Iterable/node_modules/protractor/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3
[launcher] Process exited with error code 1
Was a good solution ever found?
I've added rootElement: 'div'
with no luck as well...
Thanks!
I've just updated angular to 1.3.4 version and my protractor test (that's just a fake because I'm just starting a new project) is no more running properly. In particular the function
browser.waitForAngular
doesn't work any more. This is my configuration:My app is obviously running on
http://localhost:8080
. I'm using GRUNT to run it:The following is the output;
As I said, If I use Angular 1.2.27 the test run correctly, as I update to 1.3.4, it stops.
The app is a bare scaffold, but it's manually bootstrapped.
Thanks