{"action":"created","issue":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/748","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/748/labels{/name}","comments_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/748/comments","events_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/748/events","html_url":"https://github.com/webdriverio/webdriverio/issues/748","id":103837045,"number":748,"title":"Better protection against stale element reference (feature request)","user":{"login":"kblcuk","id":5792253,"avatar_url":"https://avatars.githubusercontent.com/u/5792253?v=3","gravatar_id":"","url":"https://api.github.com/users/kblcuk","html_url":"https://github.com/kblcuk","followers_url":"https://api.github.com/users/kblcuk/followers","following_url":"https://api.github.com/users/kblcuk/following{/other_user}","gists_url":"https://api.github.com/users/kblcuk/gists{/gist_id}","starred_url":"https://api.github.com/users/kblcuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblcuk/subscriptions","organizations_url":"https://api.github.com/users/kblcuk/orgs","repos_url":"https://api.github.com/users/kblcuk/repos","events_url":"https://api.github.com/users/kblcuk/events{/privacy}","received_events_url":"https://api.github.com/users/kblcuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webdriverio/webdriverio/labels/Enhancement","name":"Enhancement","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/3","html_url":"https://github.com/webdriverio/webdriverio/milestones/Icebox","labels_url":"https://api.github.com/repos/webdriverio/webdriverio/milestones/3/labels","id":1214931,"number":3,"title":"Icebox","description":"This is for features that would be nice, but have no definite timeframe.","creator":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":3,"state":"open","created_at":"2015-07-19T22:57:24Z","updated_at":"2015-09-01T06:45:12Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-08-29T07:48:18Z","updated_at":"2015-09-10T20:35:09Z","closed_at":null,"body":"It would be nice if webdriverio will try to re-fetch the stale element if such error occurs.\r\nOr would it?\r\n\r\nFor instance I was having some problems testing button with a counter, where waitForCountToIncrease would fail very often because webdriver would get counter reference, but before next check the count updates and re-renders the whole button, and then webdriver check fails.\r\n\r\nNatural place would probably be [waitUntil](https://github.com/webdriverio/webdriverio/blob/ce51baa448714e69f19899718236f988417b4b3d/lib/commands/waitUntil.js#L93), with similar check to timeout but using attempts counter, I guess.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/webdriverio/webdriverio/issues/comments/139371467","html_url":"https://github.com/webdriverio/webdriverio/issues/748#issuecomment-139371467","issue_url":"https://api.github.com/repos/webdriverio/webdriverio/issues/748","id":139371467,"user":{"login":"christian-bromann","id":731337,"avatar_url":"https://avatars.githubusercontent.com/u/731337?v=3","gravatar_id":"","url":"https://api.github.com/users/christian-bromann","html_url":"https://github.com/christian-bromann","followers_url":"https://api.github.com/users/christian-bromann/followers","following_url":"https://api.github.com/users/christian-bromann/following{/other_user}","gists_url":"https://api.github.com/users/christian-bromann/gists{/gist_id}","starred_url":"https://api.github.com/users/christian-bromann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christian-bromann/subscriptions","organizations_url":"https://api.github.com/users/christian-bromann/orgs","repos_url":"https://api.github.com/users/christian-bromann/repos","events_url":"https://api.github.com/users/christian-bromann/events{/privacy}","received_events_url":"https://api.github.com/users/christian-bromann/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T20:35:09Z","updated_at":"2015-09-10T20:35:09Z","body":"I kinda now how to fix this issue but I don't like the way how I would need to implement it. I am still looking for an easier way."}}