{"action":"created","issue":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/625","repository_url":"https://api.github.com/repos/robotframework/Selenium2Library","labels_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/625/comments","events_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/625/events","html_url":"https://github.com/robotframework/Selenium2Library/issues/625","id":167277921,"number":625,"title":"\"Click Element\" keyword does not work in some case","user":{"login":"vinaybond","id":7723948,"avatar_url":"https://avatars.githubusercontent.com/u/7723948?v=3","gravatar_id":"","url":"https://api.github.com/users/vinaybond","html_url":"https://github.com/vinaybond","followers_url":"https://api.github.com/users/vinaybond/followers","following_url":"https://api.github.com/users/vinaybond/following{/other_user}","gists_url":"https://api.github.com/users/vinaybond/gists{/gist_id}","starred_url":"https://api.github.com/users/vinaybond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinaybond/subscriptions","organizations_url":"https://api.github.com/users/vinaybond/orgs","repos_url":"https://api.github.com/users/vinaybond/repos","events_url":"https://api.github.com/users/vinaybond/events{/privacy}","received_events_url":"https://api.github.com/users/vinaybond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2016-07-25T04:04:48Z","updated_at":"2016-12-07T02:03:38Z","closed_at":null,"body":"In some cases i see the \"Click Element\" keyword had clicked on the element but the action on that element in not triggered. When I say \"keyword had clicked on element\", it means it did not throw any error. In some cases I can see the dotted border (in screenshot) around the element which normally happens when we click on element. Has anyone encountered such kind of problem?\n\n::My Questions::\n1. Can it happen that selenium misses the click\n2. I have put the waits for that element to be visible & enable. Assuming a possibility that corresponding JS is not loaded, in this case it should throw error which is not happening. I am capturing details via BrowserMobProxy which does not show any JS error.\n   I am clueless why this is happening.\n\nFew observation: \n- Whenever the environment is slow, this tend to happen more \n- We tried adding consecutive clicks for same element (with \"Run Keyword And Ignore Error\" with second \"click element\") and it worked.\n"},"comment":{"url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/comments/265333830","html_url":"https://github.com/robotframework/Selenium2Library/issues/625#issuecomment-265333830","issue_url":"https://api.github.com/repos/robotframework/Selenium2Library/issues/625","id":265333830,"user":{"login":"emanlove","id":993527,"avatar_url":"https://avatars.githubusercontent.com/u/993527?v=3","gravatar_id":"","url":"https://api.github.com/users/emanlove","html_url":"https://github.com/emanlove","followers_url":"https://api.github.com/users/emanlove/followers","following_url":"https://api.github.com/users/emanlove/following{/other_user}","gists_url":"https://api.github.com/users/emanlove/gists{/gist_id}","starred_url":"https://api.github.com/users/emanlove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanlove/subscriptions","organizations_url":"https://api.github.com/users/emanlove/orgs","repos_url":"https://api.github.com/users/emanlove/repos","events_url":"https://api.github.com/users/emanlove/events{/privacy}","received_events_url":"https://api.github.com/users/emanlove/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T02:03:38Z","updated_at":"2016-12-07T02:03:38Z","body":"The best option may be to use the ```Wait Until Keyword Succeeds``` [keyword](http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Wait%20Until%20Keyword%20Succeeds). That way it it not some arbitrary sleep statement nor is it guessing whether three or five tries is the magic number.\r\n\r\nSo I am assuming you mean [EMC's Web Development Kit](https://developer-content.emc.com/developer/what_is_a_wdk_component.html) and not something like Windows Developer Kit. [There was a lot of WDKs relating to some work of web application/development out there]. EMC's WDK sounds a lot like Java Server Faces and [even it looks like](https://developer-content.emc.com/developer/downloads/wdk5_reviewer_guide7.pdf) WDK uses JSF. My guess, and it is just a guess, is that there is some sort of either AJAX going on or http calls finishing up. Although with the later I would expect some or a fair amount of stale element exceptions. The ```Wait Until Keyword Succeeds``` keyword should help. And if you find out any good flag to check with WDK whether or not it has completed it's \"queue of activity\" for lack of a better word then that might lead you to a good place to implicitly wait for WDK to complete any AJAX of http requests."}}
{"actor":{"display_login":"emanlove"}}