{"action":"created","issue":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5457","repository_url":"https://api.github.com/repos/SeleniumHQ/selenium","labels_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5457/labels{/name}","comments_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5457/comments","events_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5457/events","html_url":"https://github.com/SeleniumHQ/selenium/issues/5457","id":295194293,"node_id":"MDU6SXNzdWUyOTUxOTQyOTM=","number":5457,"title":"The HTTP request to the remote WebDriver server for URL http://localhost:42607/session timed out after 60 seconds.","user":{"login":"Legends","id":966368,"node_id":"MDQ6VXNlcjk2NjM2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/966368?v=4","gravatar_id":"","url":"https://api.github.com/users/Legends","html_url":"https://github.com/Legends","followers_url":"https://api.github.com/users/Legends/followers","following_url":"https://api.github.com/users/Legends/following{/other_user}","gists_url":"https://api.github.com/users/Legends/gists{/gist_id}","starred_url":"https://api.github.com/users/Legends/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Legends/subscriptions","organizations_url":"https://api.github.com/users/Legends/orgs","repos_url":"https://api.github.com/users/Legends/repos","events_url":"https://api.github.com/users/Legends/events{/privacy}","received_events_url":"https://api.github.com/users/Legends/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-07T16:04:55Z","updated_at":"2018-07-15T10:38:32Z","closed_at":"2018-02-08T16:54:31Z","author_association":"NONE","body":"## Meta -\r\nOS:  Win 10 c64\r\n<!-- Windows 10? OSX? -->\r\nSelenium Version:  3.9.0.0\r\nSelenium.WebDriver.ChromeDriver version=\"2.35.0\" targetFramework=\"net47\"\r\n\r\n<!-- 2.52.0, IDE, etc -->\r\nBrowser:  Chrome Version 64.0.3282.140 (Official Build) (64-bit)\r\n  \r\n## Expected Behavior -\r\nGet data back.\r\nIt is the same code I use in my unit test. My unit test passes successfully, but when running in IIS I get the error below.\r\n## Actual Behavior -\r\n\r\nThrows exception when hitting the chromeDriver constructor.\r\nStrange exception message is: http://localhost:42607/session timed out after 60 seconds.\r\nI do not do a request to this url? I don't know where it comes from?!\r\nWhen I open this url in chrome, it displays: Unknown command.\r\n\r\n> {\r\n>     \"Message\": \"An error has occurred.\",\r\n>     \"ExceptionMessage\": \"The HTTP request to the remote WebDriver server for URL http://localhost:42607/session timed out after 60 seconds.\",\r\n>     \"ExceptionType\": \"OpenQA.Selenium.WebDriverException\",\r\n>     \"StackTrace\": \"   at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\\r\\n   at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)\\r\\n   at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)\\r\\n   at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)\\r\\n   at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)\\r\\n   at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)\\r\\n   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)\\r\\n   at Web.Scraping.WebApi.ScrapeController.Post(List`1 listDTO) in C:\\\\Users\\\\Admin\\\\Documents\\\\Visual Studio 2017\\\\Projects\\\\Phantomjs.UnitTests\\\\Web.Scraping.WebApi\\\\ScrapeController.cs:line 45\\r\\n   at lambda_method(Closure , Object , Object[] )\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\\r\\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()\",\r\n>     \"InnerException\": {\r\n>         \"Message\": \"An error has occurred.\",\r\n>         \"ExceptionMessage\": \"The request was aborted: The operation has timed out.\",\r\n>         \"ExceptionType\": \"System.Net.WebException\",\r\n>         \"StackTrace\": \"   at System.Net.HttpWebRequest.GetResponse()\\r\\n   at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)\"\r\n>     }\r\n> }\r\n\r\n## Steps to reproduce -\r\nThis code works fine in my unit test and also worked fine in IIS before, but out of sudden it is broken.\r\n\r\n ```\r\nvar co = new ChromeOptions();\r\n            co.AddArgument(\"headless\");\r\n            co.AcceptInsecureCertificates = true;\r\n            co.PageLoadStrategy = PageLoadStrategy.Normal;\r\n\r\n            Dictionary<string, bool> dic = new Dictionary<string, bool>();\r\n\r\n            using (var driver = new ChromeDriver(co))\r\n            {\r\n                try\r\n                {\r\n                    var urls = new string[] { paypalUrl, noPaypalUrl, paypalUrl1 };\r\n                    driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);\r\n\r\n                    for (int i = 0; i < urls.Length; i++)\r\n                    {\r\n                        var url = urls[i];\r\n\r\n                        var exists = driver.CheckElementExists(url, \r\n                            wt => !string.IsNullOrWhiteSpace(wt.FindElement(By.CssSelector(\"ul.payment-type-list\")).Text), \"li.pt-paypal\");\r\n\r\n                        dic.Add(url, exists);\r\n                    }\r\n\r\n                    driver.Close();\r\n\r\n....\r\n\r\n  static IWebElement TryFindElementByCssSelector(this ChromeDriver self, string cssSelector)\r\n        {\r\n            try\r\n            {\r\n                return self.FindElementByCssSelector(cssSelector);\r\n            }\r\n            catch (Exception) { }\r\n\r\n            return null;\r\n        }\r\n\r\n        public static bool CheckElementExists(this ChromeDriver driver, string url, Func<IWebDriver, bool> waitCondition, string cssSelectorToLookFor)\r\n        {\r\n            driver.Navigate().GoToUrl(url);\r\n            var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));\r\n            wait.Until(waitCondition);\r\n\r\n            var liPaypal = driver.TryFindElementByCssSelector(cssSelectorToLookFor);\r\n\r\n            return liPaypal == null ? false : true;\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/comments/405082161","html_url":"https://github.com/SeleniumHQ/selenium/issues/5457#issuecomment-405082161","issue_url":"https://api.github.com/repos/SeleniumHQ/selenium/issues/5457","id":405082161,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA4MjE2MQ==","user":{"login":"DariaTl","id":36892772,"node_id":"MDQ6VXNlcjM2ODkyNzcy","avatar_url":"https://avatars3.githubusercontent.com/u/36892772?v=4","gravatar_id":"","url":"https://api.github.com/users/DariaTl","html_url":"https://github.com/DariaTl","followers_url":"https://api.github.com/users/DariaTl/followers","following_url":"https://api.github.com/users/DariaTl/following{/other_user}","gists_url":"https://api.github.com/users/DariaTl/gists{/gist_id}","starred_url":"https://api.github.com/users/DariaTl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DariaTl/subscriptions","organizations_url":"https://api.github.com/users/DariaTl/orgs","repos_url":"https://api.github.com/users/DariaTl/repos","events_url":"https://api.github.com/users/DariaTl/events{/privacy}","received_events_url":"https://api.github.com/users/DariaTl/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T10:38:32Z","updated_at":"2018-07-15T10:38:32Z","author_association":"NONE","body":"I am facing the same issue, Is there any updates on this one? \r\nI did notes that if I run my test local with VS 2017 id do past, but on 2015 still failing, can it be related? "}}
{"actor":{"display_login":"DariaTl"}}