{"action":"created","issue":{"url":"https://api.github.com/repos/semperos/clj-webdriver/issues/142","labels_url":"https://api.github.com/repos/semperos/clj-webdriver/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/semperos/clj-webdriver/issues/142/comments","events_url":"https://api.github.com/repos/semperos/clj-webdriver/issues/142/events","html_url":"https://github.com/semperos/clj-webdriver/issues/142","id":94402806,"number":142,"title":"Retry on StaleElementReferenceException for Taxi API","user":{"login":"jeffh","id":68616,"avatar_url":"https://avatars.githubusercontent.com/u/68616?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffh","html_url":"https://github.com/jeffh","followers_url":"https://api.github.com/users/jeffh/followers","following_url":"https://api.github.com/users/jeffh/following{/other_user}","gists_url":"https://api.github.com/users/jeffh/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffh/subscriptions","organizations_url":"https://api.github.com/users/jeffh/orgs","repos_url":"https://api.github.com/users/jeffh/repos","events_url":"https://api.github.com/users/jeffh/events{/privacy}","received_events_url":"https://api.github.com/users/jeffh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T22:05:46Z","updated_at":"2015-08-01T20:05:14Z","closed_at":null,"body":"This is a proposal to make the taxi api automatically retry when selenium throws a [StaleElementReferenceException](http://docs.seleniumhq.org/exceptions/stale_element_reference.jsp).\r\n\r\nThis exception is raised when an element no longer exists on the page before performing an action. Since the Selenium API fetches the element before acting on it, the clj-webdriver Taxi API can 'lose' the element before it can act on it. This means clj-webdriver can throw this exception for any invocation (such as [click](https://github.com/semperos/clj-webdriver/blob/master/src/clj_webdriver/taxi.clj#L930)).\r\n\r\nThis normally isn't a major problem, but React tends to trigger this exception more frequently than other libraries. I've experienced this issue while testing an Om application. Adding some try-catch retry for this exception with a timeout seems to resolve all our flakiness issues.\r\n\r\nIf this sounds good for you, I'm more than will to submit a PR."},"comment":{"url":"https://api.github.com/repos/semperos/clj-webdriver/issues/comments/126949188","html_url":"https://github.com/semperos/clj-webdriver/issues/142#issuecomment-126949188","issue_url":"https://api.github.com/repos/semperos/clj-webdriver/issues/142","id":126949188,"user":{"login":"semperos","id":231375,"avatar_url":"https://avatars.githubusercontent.com/u/231375?v=3","gravatar_id":"","url":"https://api.github.com/users/semperos","html_url":"https://github.com/semperos","followers_url":"https://api.github.com/users/semperos/followers","following_url":"https://api.github.com/users/semperos/following{/other_user}","gists_url":"https://api.github.com/users/semperos/gists{/gist_id}","starred_url":"https://api.github.com/users/semperos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semperos/subscriptions","organizations_url":"https://api.github.com/users/semperos/orgs","repos_url":"https://api.github.com/users/semperos/repos","events_url":"https://api.github.com/users/semperos/events{/privacy}","received_events_url":"https://api.github.com/users/semperos/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T20:05:14Z","updated_at":"2015-08-01T20:05:14Z","body":"Project update: https://groups.google.com/d/msg/clj-webdriver/tBGG8q24j7Y/5aLuugjCBAAJ"}}