{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2456","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2456/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2456/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2456/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/2456","id":165160361,"number":2456,"title":"Download file in IE ","user":{"login":"madhavisama","id":11800593,"avatar_url":"https://avatars.githubusercontent.com/u/11800593?v=3","gravatar_id":"","url":"https://api.github.com/users/madhavisama","html_url":"https://github.com/madhavisama","followers_url":"https://api.github.com/users/madhavisama/followers","following_url":"https://api.github.com/users/madhavisama/following{/other_user}","gists_url":"https://api.github.com/users/madhavisama/gists{/gist_id}","starred_url":"https://api.github.com/users/madhavisama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhavisama/subscriptions","organizations_url":"https://api.github.com/users/madhavisama/orgs","repos_url":"https://api.github.com/users/madhavisama/repos","events_url":"https://api.github.com/users/madhavisama/events{/privacy}","received_events_url":"https://api.github.com/users/madhavisama/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T19:29:31Z","updated_at":"2016-07-12T20:01:35Z","closed_at":"2016-07-12T19:48:22Z","body":"I am trying to download a file from website using selenium webdriver using c#. I am able to do it with following code:\r\nThread ts = new Thread(new ThreadStart(() => viewfile.Click()));\r\nts.Start();\r\nHere Viewfile is the link which downloads after click. It works fine. Then I have this code to save:\r\nSystem.Threading.Thread.Sleep(5000);\r\nSystem.Windows.Forms.SendKeys.SendWait(\"%(s)\");\r\nSystem.Threading.Thread.Sleep(1000);\r\nIt saves correctly. Then after 60 seconds, I am getting this exception:\r\nAn unhandled exception of type 'OpenQA.Selenium.WebDriverException' occurred in WebDriver.dll Additional information: The HTTP request to the remote WebDriver server for URLhttp://localhost:49340/session/1ef08ce8-ccc3-444b-becb-589262b9d98b/element/4911d35b-367c-4eab-b407-b2d7d0de8e7b/click timed out after 60 seconds.\r\nIt looks like that the click happened in different thread is not returning the control back to webdriver.\r\nPlease suggest to handle this error."},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/232161994","html_url":"https://github.com/SeleniumHQ/selenium/issues/2456#issuecomment-232161994","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/2456","id":232161994,"user":{"login":"jimevans","id":352840,"avatar_url":"https://avatars.githubusercontent.com/u/352840?v=3","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":"2016-07-12T20:01:35Z","updated_at":"2016-07-12T20:01:35Z","body":"@madhavisama The response doesn't change. WebDriver doesn't have any direct way to download files. The technique outlined in the referenced article (read the target URL from the page and use a separate HTTP client library to download the file) applies no matter what language you use. You can't rely on clicking on a separate thread. "}}
{"actor":{"display_login":"jimevans"}}