{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/6087","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/6087/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/6087/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/6087/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/6087","id":336336929,"node_id":"MDU6SXNzdWUzMzYzMzY5Mjk=","number":6087,"title":"Click functionality inconsistent with geckodriver","user":{"login":"EricHanLiu","id":17733887,"node_id":"MDQ6VXNlcjE3NzMzODg3","avatar_url":"https://avatars1.githubusercontent.com/u/17733887?v=4","gravatar_id":"","url":"https://api.github.com/users/EricHanLiu","html_url":"https://github.com/EricHanLiu","followers_url":"https://api.github.com/users/EricHanLiu/followers","following_url":"https://api.github.com/users/EricHanLiu/following{/other_user}","gists_url":"https://api.github.com/users/EricHanLiu/gists{/gist_id}","starred_url":"https://api.github.com/users/EricHanLiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricHanLiu/subscriptions","organizations_url":"https://api.github.com/users/EricHanLiu/orgs","repos_url":"https://api.github.com/users/EricHanLiu/repos","events_url":"https://api.github.com/users/EricHanLiu/events{/privacy}","received_events_url":"https://api.github.com/users/EricHanLiu/received_events","type":"User","site_admin":false},"labels":[{"id":182486420,"node_id":"MDU6TGFiZWwxODI0ODY0MjA=","url":"https://api.github.com/repos/SeleniumHQ/selenium/labels/R-awaiting%20answer","name":"R-awaiting answer","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T18:19:52Z","updated_at":"2018-06-27T20:22:15Z","closed_at":null,"author_association":"NONE","body":"## Meta \r\nOS:  Mac OS\r\n<!-- Windows 10? OSX? -->\r\nSelenium Version:  4.0.0-alpha.1\r\n<!-- 2.52.0, IDE, etc -->\r\nBrowser:  Firefox (using GeckoDriver)\r\n<!-- Internet Explorer?  Firefox? -->\r\nBrowser Version:  61.0\r\n<!-- e.g.: 49.0.2623.87 (64-bit) -->\r\n\r\n\r\n## Expected Behavior -\r\nRunning \r\n```javascript\r\nlet cancelButton = await browser.findElement(By.id('cancel-export-div'));\r\nconst actions = browser.actions();\r\nawait actions.click(cancelButton).perform();\r\n```\r\nshould click on the cancel button (which is actually a div) consistently. \r\n\r\n## Actual Behavior -\r\nThe button is not always clicked properly (which causes the test to fail). It fails around 20% of the time, but it's hard to discern when it'll happen and it seems completely arbitrary to me. \r\n\r\nIt's **not** an issue with the element not being loaded, as I am sleeping a few seconds before clicking and can observe every time that the element is loaded and clickable. In the times that the element is not clicked properly, I can see that the mouse moves to the `WebElement`, but the click just doesn't seem to register (perhaps it doesn't execute either).\r\n\r\nHowever, I use clicks everywhere else in my tests and they all succeed. This is the only case where it fails. In this case, I'm clicking a button which creates a progress bar div (takes the whole page), and this click to cancel the progress (and destroy the div) sometimes fails.\r\n\r\n## Steps to reproduce -\r\n<!--\r\nPlease be sure to include an SSCCE (Short, Self Contained, Correct [compilable] example) http://sscce.org/\r\nIf you can't provide a link to the page, consider creating a reproducible page on https://jsfiddle.net/\r\n-->\r\nNot sure, seems to happen arbitrarily, yet only in this specific test. The exact code for this test:\r\n```javascript\r\ntest('cancel progress bar works', async () => {\r\n    await browser.sleep(1500);\r\n\r\n    let cancelButton = await browser.findElement(By.id('cancel-export-div'));\r\n    const actions = browser.actions();\r\n    await actions.click(cancelButton).perform(); \r\n\r\n    await browser.sleep(1000);\r\n    expect(await browser.findElements(By.id('pixel-export-div'))).toEqual([]); // empty list since not found\r\n    });\r\n```\r\n\r\n\r\nSeems to be related to [this issue](https://github.com/SeleniumHQ/selenium/issues/4075), but I'm using geckodriver not chromedriver"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/400816238","html_url":"https://github.com/SeleniumHQ/selenium/issues/6087#issuecomment-400816238","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/6087","id":400816238,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDgxNjIzOA==","user":{"login":"barancev","id":617090,"node_id":"MDQ6VXNlcjYxNzA5MA==","avatar_url":"https://avatars2.githubusercontent.com/u/617090?v=4","gravatar_id":"","url":"https://api.github.com/users/barancev","html_url":"https://github.com/barancev","followers_url":"https://api.github.com/users/barancev/followers","following_url":"https://api.github.com/users/barancev/following{/other_user}","gists_url":"https://api.github.com/users/barancev/gists{/gist_id}","starred_url":"https://api.github.com/users/barancev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barancev/subscriptions","organizations_url":"https://api.github.com/users/barancev/orgs","repos_url":"https://api.github.com/users/barancev/repos","events_url":"https://api.github.com/users/barancev/events{/privacy}","received_events_url":"https://api.github.com/users/barancev/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T20:22:15Z","updated_at":"2018-06-27T20:22:15Z","author_association":"MEMBER","body":"For issues please provide a [concise reproducible test case](http://sscce.org/) and describe what results you are seeing and what results you expect.\r\n\r\nSee [CONTRIBUTING.md](https://github.com/SeleniumHQ/selenium/blob/master/CONTRIBUTING.md#issue-contributions)"}}
{"actor":{"display_login":"barancev"}}