{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5072","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5072/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5072/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5072/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/5072","id":274911763,"number":5072,"title":"Click() action unable to perform action on different elements","user":{"login":"curtisy1","id":23632152,"avatar_url":"https://avatars2.githubusercontent.com/u/23632152?v=4","gravatar_id":"","url":"https://api.github.com/users/curtisy1","html_url":"https://github.com/curtisy1","followers_url":"https://api.github.com/users/curtisy1/followers","following_url":"https://api.github.com/users/curtisy1/following{/other_user}","gists_url":"https://api.github.com/users/curtisy1/gists{/gist_id}","starred_url":"https://api.github.com/users/curtisy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curtisy1/subscriptions","organizations_url":"https://api.github.com/users/curtisy1/orgs","repos_url":"https://api.github.com/users/curtisy1/repos","events_url":"https://api.github.com/users/curtisy1/events{/privacy}","received_events_url":"https://api.github.com/users/curtisy1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-17T15:59:35Z","updated_at":"2017-11-28T11:41:42Z","closed_at":"2017-11-17T19:10:04Z","author_association":"NONE","body":"## Meta -\r\nOS:  Windows 10, Fall update\r\nSelenium Version: .NET 3.7.0\r\nBrowser:  Firefox\r\n\r\nBrowser Version:  59.0a1 (2017-11-16) (64-Bit)\r\n\r\n## Expected Behavior -\r\n\r\nActions should be capable of performing actions to different elements in one go, as documented in the Python reference [here](https://seleniumhq.github.io/selenium/docs/api/py/webdriver/selenium.webdriver.common.action_chains.html). \r\n\r\n## Actual Behavior -\r\n\r\nCalling Click() with different elements results in a StaleElementReference Exception\r\n\r\n## Steps to reproduce -\r\nNote: I didn't test if this example works as well, but it generally should. I simply changed my selectors and adjusted them to match those of the test case.\r\n```\r\nActions cutpaste = new Actions(Driver);\r\n\t\t\tcutpaste.ContextClick(Driver.FindElement(By.XPath(\"//tbody/tr[2]/td[5]\")))\r\n\t\t\t\t.Build()\r\n\t\t\t\t.Perform();\r\n                        // this popup is a child of //tbody/tr[2]\r\n\t\t\tvar popup = Driver.FindElements(By.CssSelector(\"ul.ui-menu\"));\r\n\t\t\tActions click = new Actions(Driver);\r\n\t\t\tclick.Click(popup[0]).Build().Perform();\r\n                        // this works fine, although the value changed\r\n\t\t\tcutpaste.ContextClick(Driver.FindElement(By.XPath(\"//tbody/tr[3]/td[5]\")))\r\n\t\t\t\t.Build()\r\n\t\t\t\t.Perform();\r\n                        // this popup is now a child of //tbody/tr[3]\r\n\t\t\tpopup = Driver.FindElements(By.CssSelector(\"ul.ui-menu\"));\r\n                        // this fails with a staleelementreference exception, although it's the same procedue as contectClick()\r\n\t\t\tclick.Click(popup[0]).Build().Perform();\r\n```\r\n\r\nFor an example that should be able to reproduce this, see [here](http://live.datatables.net/savuvija/1/edit). "},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/347498007","html_url":"https://github.com/SeleniumHQ/selenium/issues/5072#issuecomment-347498007","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5072","id":347498007,"user":{"login":"jimevans","id":352840,"avatar_url":"https://avatars3.githubusercontent.com/u/352840?v=4","gravatar_id":"","url":"https://api.github.com/users/jimevans","html_url":"https://github.com/jimevans","followers_url":"https://api.github.com/users/jimevans/followers","following_url":"https://api.github.com/users/jimevans/following{/other_user}","gists_url":"https://api.github.com/users/jimevans/gists{/gist_id}","starred_url":"https://api.github.com/users/jimevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimevans/subscriptions","organizations_url":"https://api.github.com/users/jimevans/orgs","repos_url":"https://api.github.com/users/jimevans/repos","events_url":"https://api.github.com/users/jimevans/events{/privacy}","received_events_url":"https://api.github.com/users/jimevans/received_events","type":"User","site_admin":false},"created_at":"2017-11-28T11:41:42Z","updated_at":"2017-11-28T11:41:42Z","author_association":"MEMBER","body":"Because the elements the `cutpaste` action refers to (and it refers to multiple elements at the end, so it right-clicks on two elements the second time `Perform` is called), aren’t stale. The elements referred to in the DOM haven’t been removed and replaced, as they have on the pop up menu. "}}
{"actor":{"display_login":"jimevans"}}