{"action":"created","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2236","labels_url":"https://api.github.com/repos/angular/protractor/issues/2236/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2236/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2236/events","html_url":"https://github.com/angular/protractor/issues/2236","id":87442142,"number":2236,"title":"Protractor - Unable to find element after previous session crash","user":{"login":"ravikumars","id":1864888,"avatar_url":"https://avatars.githubusercontent.com/u/1864888?v=3","gravatar_id":"","url":"https://api.github.com/users/ravikumars","html_url":"https://github.com/ravikumars","followers_url":"https://api.github.com/users/ravikumars/followers","following_url":"https://api.github.com/users/ravikumars/following{/other_user}","gists_url":"https://api.github.com/users/ravikumars/gists{/gist_id}","starred_url":"https://api.github.com/users/ravikumars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravikumars/subscriptions","organizations_url":"https://api.github.com/users/ravikumars/orgs","repos_url":"https://api.github.com/users/ravikumars/repos","events_url":"https://api.github.com/users/ravikumars/events{/privacy}","received_events_url":"https://api.github.com/users/ravikumars/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T18:37:02Z","updated_at":"2015-06-11T18:59:53Z","closed_at":"2015-06-11T18:59:53Z","body":"*Note:* I am running into this issue which is quite intermittent and it may happen at random places. So there is no reliable way of reproducing the issue at this time.\r\n\r\n**Setup:**\r\n- Selenium standalone driver running at http://localhost:4444/wd/hub\r\n- IEDriver\r\n\r\n**Description**\r\n1. Suppose I run a spec file that crashes in the middle and I just kill the browser. The session itself will still be seen in the http://localhost:4444/wd/hub.\r\n2. When I re-run the same test, a new session will be created and the test will run. During this run the test will fail most of the time with \"Failed: Unable to find element with ...\" error. \r\n3. Sometimes this happens right at the start and sometimes it happens after some steps.\r\n4. At this point there will be two webdriver sessions in the remote. What is interesting is the session id in the error thrown in step 3 above is not in the remote webdriver session ids.\r\n\r\nThe error is:\r\n```\r\n- Failed: Unable to find element with id == IDToken1 (WARNING: The server did not provide any stacktrace information)\r\nCommand duration or timeout: 296 milliseconds\r\nFor documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html\r\nBuild info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'\r\nSystem info: host: 'LT4304', ip: '10.20.71.12', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'\r\nDriver info: org.openqa.selenium.ie.InternetExplorerDriver\r\nCapabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=9, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:3196/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]\r\nSession ID: 2c856897-c404-4a6d-9794-64a7308cbb30\r\n*** Element info: {Using=id, value=IDToken1}\r\n```\r\n\r\nThe ```Session ID: 2c856897-c404-4a6d-9794-64a7308cbb30``` reported above is not in the remote driver list.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/protractor/issues/comments/111240028","html_url":"https://github.com/angular/protractor/issues/2236#issuecomment-111240028","issue_url":"https://api.github.com/repos/angular/protractor/issues/2236","id":111240028,"user":{"login":"sjelin","id":4841675,"avatar_url":"https://avatars.githubusercontent.com/u/4841675?v=3","gravatar_id":"","url":"https://api.github.com/users/sjelin","html_url":"https://github.com/sjelin","followers_url":"https://api.github.com/users/sjelin/followers","following_url":"https://api.github.com/users/sjelin/following{/other_user}","gists_url":"https://api.github.com/users/sjelin/gists{/gist_id}","starred_url":"https://api.github.com/users/sjelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjelin/subscriptions","organizations_url":"https://api.github.com/users/sjelin/orgs","repos_url":"https://api.github.com/users/sjelin/repos","events_url":"https://api.github.com/users/sjelin/events{/privacy}","received_events_url":"https://api.github.com/users/sjelin/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T18:59:53Z","updated_at":"2015-06-11T18:59:53Z","body":"As per our [`CONTRIBUTING.md`](https://github.com/angular/protractor/blob/master/CONTRIBUTING.md), please ask this kind of question on Stack Overflow"}}