{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/3231","repository_url":"https://api.github.com/repos/angular/protractor","labels_url":"https://api.github.com/repos/angular/protractor/issues/3231/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/3231/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/3231/events","html_url":"https://github.com/angular/protractor/issues/3231","id":155841645,"number":3231,"title":"Unable to locate element on Non angular page with Browser.driver","user":{"login":"DaisyCompsci","id":19475557,"avatar_url":"https://avatars.githubusercontent.com/u/19475557?v=3","gravatar_id":"","url":"https://api.github.com/users/DaisyCompsci","html_url":"https://github.com/DaisyCompsci","followers_url":"https://api.github.com/users/DaisyCompsci/followers","following_url":"https://api.github.com/users/DaisyCompsci/following{/other_user}","gists_url":"https://api.github.com/users/DaisyCompsci/gists{/gist_id}","starred_url":"https://api.github.com/users/DaisyCompsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaisyCompsci/subscriptions","organizations_url":"https://api.github.com/users/DaisyCompsci/orgs","repos_url":"https://api.github.com/users/DaisyCompsci/repos","events_url":"https://api.github.com/users/DaisyCompsci/events{/privacy}","received_events_url":"https://api.github.com/users/DaisyCompsci/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T21:39:37Z","updated_at":"2016-05-23T20:50:16Z","closed_at":"2016-05-23T20:50:16Z","body":"This way works on a different non-angular page for me before without any wait or sleep.\r\n\r\nBasically I have some code looks like this:\r\n\r\n                var driver=browser.driver;\r\n                // maximize window \r\n                driver.manage().window().maximize();\r\n\t\t// log in\r\n\t\tbrowser.get('https://www.qa.dealertrack.com/default1.aspx');\r\n\t\tdriver.findElement(by.name('username')).sendKeys(id);\r\n\t\tdriver.findElement(by.name('password')).sendKeys(password);\r\n\t\tdriver.findElement(by.name('login')).click();\r\n\r\n\t\tbrowser.driver.wait(function() {\r\n\t\t\t\t\t\t\treturn browser.driver.getCurrentUrl().then(function(url) {\r\n\t\t\t\t\t\t\t\t\t\t\t\texpect(url).toEqual(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'https://www.qa.dealertrack.com/default1.aspx');\r\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log('Successfully loged into '\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ url);\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn url;\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}, timeOut,\r\n\t\t\t\t\t\t'Expectation error: Timed out waiting for current url');\r\n                 driver.findElement(by.id('AppSub')).click();\r\n\r\nElement in the last line could not be found. I double checked and I am sure the locator is not wrong.\r\nI have used some way to test other non angular page, everything went smoothly. I don't understand why it does not work on this site."},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/221092119","html_url":"https://github.com/angular/protractor/issues/3231#issuecomment-221092119","issue_url":"https://api.github.com/repos/angular/protractor/issues/3231","id":221092119,"user":{"login":"juliemr","id":2081709,"avatar_url":"https://avatars.githubusercontent.com/u/2081709?v=3","gravatar_id":"","url":"https://api.github.com/users/juliemr","html_url":"https://github.com/juliemr","followers_url":"https://api.github.com/users/juliemr/followers","following_url":"https://api.github.com/users/juliemr/following{/other_user}","gists_url":"https://api.github.com/users/juliemr/gists{/gist_id}","starred_url":"https://api.github.com/users/juliemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliemr/subscriptions","organizations_url":"https://api.github.com/users/juliemr/orgs","repos_url":"https://api.github.com/users/juliemr/repos","events_url":"https://api.github.com/users/juliemr/events{/privacy}","received_events_url":"https://api.github.com/users/juliemr/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T20:50:16Z","updated_at":"2016-05-23T20:50:16Z","body":"Please direct general support questions like this one to an appropriate support channel, see https://github.com/angular/protractor/blob/master/CONTRIBUTING.md#questions\r\n\r\nThank you!"}}
{"actor":{"display_login":"juliemr"}}