{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/3536","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/3536/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/3536/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/3536/events","html_url":"https://github.com/angular/angular-cli/issues/3536","id":195108224,"number":3536,"title":"protractor's browser.setLocation() does not work.","user":{"login":"krotscheck","id":965182,"avatar_url":"https://avatars.githubusercontent.com/u/965182?v=3","gravatar_id":"","url":"https://api.github.com/users/krotscheck","html_url":"https://github.com/krotscheck","followers_url":"https://api.github.com/users/krotscheck/followers","following_url":"https://api.github.com/users/krotscheck/following{/other_user}","gists_url":"https://api.github.com/users/krotscheck/gists{/gist_id}","starred_url":"https://api.github.com/users/krotscheck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krotscheck/subscriptions","organizations_url":"https://api.github.com/users/krotscheck/orgs","repos_url":"https://api.github.com/users/krotscheck/repos","events_url":"https://api.github.com/users/krotscheck/events{/privacy}","received_events_url":"https://api.github.com/users/krotscheck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-12T22:45:56Z","updated_at":"2016-12-30T12:51:26Z","closed_at":"2016-12-30T12:51:26Z","body":"### OS?\r\n\r\nOSX\r\n\r\n### Versions.\r\n\r\nangular-cli: 1.0.0-beta.22-1\r\nnode: 7.2.0\r\nos: darwin x64\r\nprotractor: 0.17.9\r\n\r\n### Repro steps.\r\n\r\n#### TL/DR version\r\nWrite an e2e test that uses `browser.setLocation` rather than `browser.get`. Even after initializing the angular application using the latter, the following error will be thrown:\r\n\r\n```\r\nInvalidElementStateError: invalid element state: Failed to execute 'querySelector' on 'Document': The provided selector is empty.\r\n  (Session info: chrome=54.0.2840.98)\r\n  (Driver info: chromedriver=2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6),platform=Mac OS X 10.12.1 x86_64)\r\n```\r\n\r\n#### ng init setup\r\nThis setup demonstrates how the error is thrown, even though it initializes an app without any serious routing.\r\n\r\n```bash:\r\nng init\r\nmkdir src/assets\r\ntouch src/favicon.ico\r\nnpm start\r\n\r\n# New console window\r\n\r\n# Run webdriver-manager update\r\nnpm run pree2e\r\nprotractor --elementExplorer\r\nbrowser.setLocation('test');\r\n\r\n```\r\n\r\n### The log given by the failure.\r\n\r\nSee above. The exception in question exists within the selenium-webdriver code.\r\n\r\n### Mention any other details that might be useful.\r\n\r\nHow it should work:\r\n\r\n```bash:\r\n# Do not execute in a project directory.\r\nprotractor --elementExplorer\r\nbrowser.get('http://angular.github.io/protractor/#/tutorial');\r\nbrowser.setLocation('api');\r\nbrowser.setLocation('protractor-setup');\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/269768250","html_url":"https://github.com/angular/angular-cli/issues/3536#issuecomment-269768250","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/3536","id":269768250,"user":{"login":"filipesilva","id":4172079,"avatar_url":"https://avatars.githubusercontent.com/u/4172079?v=3","gravatar_id":"","url":"https://api.github.com/users/filipesilva","html_url":"https://github.com/filipesilva","followers_url":"https://api.github.com/users/filipesilva/followers","following_url":"https://api.github.com/users/filipesilva/following{/other_user}","gists_url":"https://api.github.com/users/filipesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/filipesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipesilva/subscriptions","organizations_url":"https://api.github.com/users/filipesilva/orgs","repos_url":"https://api.github.com/users/filipesilva/repos","events_url":"https://api.github.com/users/filipesilva/events{/privacy}","received_events_url":"https://api.github.com/users/filipesilva/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T12:51:26Z","updated_at":"2016-12-30T12:51:26Z","body":"This doesn't sound like a problem with the CLI. Please open it in https://github.com/angular/protractor instead."}}
{"actor":{"display_login":"filipesilva"}}