{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material-start/issues/30","labels_url":"https://api.github.com/repos/angular/material-start/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/angular/material-start/issues/30/comments","events_url":"https://api.github.com/repos/angular/material-start/issues/30/events","html_url":"https://github.com/angular/material-start/issues/30","id":65718693,"number":30,"title":"Protractor testing","user":{"login":"mchapman","id":373462,"avatar_url":"https://avatars.githubusercontent.com/u/373462?v=3","gravatar_id":"","url":"https://api.github.com/users/mchapman","html_url":"https://github.com/mchapman","followers_url":"https://api.github.com/users/mchapman/followers","following_url":"https://api.github.com/users/mchapman/following{/other_user}","gists_url":"https://api.github.com/users/mchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/mchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchapman/subscriptions","organizations_url":"https://api.github.com/users/mchapman/orgs","repos_url":"https://api.github.com/users/mchapman/repos","events_url":"https://api.github.com/users/mchapman/events{/privacy}","received_events_url":"https://api.github.com/users/mchapman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"marcysutton","id":1045233,"avatar_url":"https://avatars.githubusercontent.com/u/1045233?v=3","gravatar_id":"","url":"https://api.github.com/users/marcysutton","html_url":"https://github.com/marcysutton","followers_url":"https://api.github.com/users/marcysutton/followers","following_url":"https://api.github.com/users/marcysutton/following{/other_user}","gists_url":"https://api.github.com/users/marcysutton/gists{/gist_id}","starred_url":"https://api.github.com/users/marcysutton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcysutton/subscriptions","organizations_url":"https://api.github.com/users/marcysutton/orgs","repos_url":"https://api.github.com/users/marcysutton/repos","events_url":"https://api.github.com/users/marcysutton/events{/privacy}","received_events_url":"https://api.github.com/users/marcysutton/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-01T16:02:19Z","updated_at":"2015-05-15T23:45:51Z","closed_at":"2015-05-15T23:45:51Z","body":"Can anyone get the tests to work?  I am getting\r\n\r\n```\r\nStarting selenium standalone server...\r\n[launcher] Running 1 instances of WebDriver\r\nSelenium standalone server started at http://192.168.0.11:38540/wd/hub\r\nFFF\r\n\r\nFailures:\r\n\r\n  1) my app should automatically redirect to /view1 when location hash/fragment is empty\r\n   Message:\r\n     Error while waiting for Protractor to sync with the page: \"angular could not be found on the window\"\r\n   Stacktrace:\r\n     undefined\r\n\r\n  2) my app view1 should render view1 when user navigates to /view1\r\n   Message:\r\n     Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector(\"[ng-view] p\")\r\n   Stacktrace:\r\n     Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector(\"[ng-view] p\")\r\n    at Array.forEach (native)\r\nError\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:22:57)\r\nFrom: Task: Asynchronous test function: it()\r\nError\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:21:5)\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:14:3)\r\n    at Object.<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:5:1)\r\n\r\n  3) my app view2 should render view2 when user navigates to /view2\r\n   Message:\r\n     Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector(\"[ng-view] p\")\r\n   Stacktrace:\r\n     Error: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By.cssSelector(\"[ng-view] p\")\r\n    at Array.forEach (native)\r\nError\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:37:57)\r\nFrom: Task: Asynchronous test function: it()\r\nError\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:36:5)\r\n    at [object Object].<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:29:3)\r\n    at Object.<anonymous> (/home/mark/Projects/material-start/e2e-tests/scenarios.js:5:1)\r\n\r\nFinished in 1.299 seconds\r\n3 tests, 3 assertions, 3 failures\r\n\r\nShutting down selenium standalone server.\r\n\r\n/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113\r\n  var template = new Error(this.message);\r\n                 ^\r\nUnknownError: unknown error: [ng:btstrpd] App Already Bootstrapped with this Element '&lt;body ng-app=\"starterApp\" layout=\"column\" ng-controller=\"UserController as ul\" class=\"ng-scope\"&gt;'\r\nhttp://errors.angularjs.org/1.3.15/ng/btstrpd?p0=%26lt%3Bbody%20ng-app%3D%22starterApp%22%20layout%3D%22column%22%20ng-controller%3D%22UserController%20as%20ul%22%20class%3D%22ng-scope%22%26gt%3B\r\n  (Session info: chrome=39.0.2171.71)\r\n  (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.13.0-40-generic x86_64) (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 6 milliseconds\r\nBuild info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'\r\nSystem info: host: 'mark-14', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-40-generic', java.version: '1.8.0_25'\r\nDriver info: org.openqa.selenium.chrome.ChromeDriver\r\nCapabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, chrome={userDataDir=/tmp/.com.google.Chrome.8yKq2F}, takesHeapSnapshot=true, databaseEnabled=false, handlesAlerts=true, version=39.0.2171.71, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true}]\r\nSession ID: a9c68ee8ad04bd4bb031ea24cb1e6427\r\n    at new bot.Error (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/error.js:113:18)\r\n    at Object.bot.response.checkResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/atoms/response.js:106:9)\r\n    at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:377:20\r\n    at [object Object].promise.ControlFlow.runInFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)\r\n    at [object Object].promise.Callback_.goog.defineClass.notify (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)\r\n    at [object Object].promise.Promise.notify_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)\r\n    at Array.forEach (native)\r\n    at Object.goog.array.forEach (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)\r\n    at [object Object].promise.Promise.notifyAll_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)\r\n    at [object Object].goog.async.run.processWorkQueue [as _onTimeout] (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)\r\nFrom: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)\r\n    at [object Object].webdriver.WebDriver.schedule (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)\r\n    at [object Object].webdriver.WebDriver.Timeouts.setScriptTimeout (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1367:23)\r\n    at [object Object].Runner.createBrowser (/usr/local/lib/node_modules/protractor/lib/runner.js:181:30)\r\n    at /usr/local/lib/node_modules/protractor/lib/runner.js:257:21\r\n    at _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:797:54)\r\n    at self.promiseDispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:826:30)\r\n    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:759:13)\r\n    at /usr/local/lib/node_modules/protractor/node_modules/q/q.js:573:44\r\n    at flush (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:108:17)\r\n    at process._tickCallback (node.js:415:13)\r\n[launcher] Process exited with error code 1\r\n```"}}