下記で困っています、
解決策をご教示ください。
前提・実現したいこと
指定したURLページがタイムアウトになるのでタイムアウト設定をしたが改善されない。
発生している問題・エラーメッセージ
OpenQA.Selenium.WebDriverException HResult=0x80131500 Message=The HTTP request to the remote WebDriver server for URL http://localhost:59751/session/2392651dec23c50ea687e5007ea3fe23/url timed out after 60 seconds. Source=WebDriver スタック トレース: 場所 OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) 場所 OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) 場所 OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) 場所 OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters) 場所 OpenQA.Selenium.Remote.RemoteWebDriver.set_Url(String value) 場所 selenium_chrome_test.Form1.button1_Click(Object sender, EventArgs e) (C:\Users\tonku\Documents\cshp\selenium_chrome_test\selenium_chrome_test\Form1.cs):行 164 場所 System.Windows.Forms.Control.OnClick(EventArgs e) 場所 System.Windows.Forms.Button.OnClick(EventArgs e) 場所 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 場所 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 場所 System.Windows.Forms.Control.WndProc(Message& m) 場所 System.Windows.Forms.ButtonBase.WndProc(Message& m) 場所 System.Windows.Forms.Button.WndProc(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 場所 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 場所 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 場所 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 場所 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) 場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 場所 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 場所 System.Windows.Forms.Application.Run(Form mainForm) 場所 selenium_chrome_test.Program.Main() (C:\Users\tonku\Documents\cshp\selenium_chrome_test\selenium_chrome_test\Program.cs):行 19 内部例外 1: WebException: 操作はタイムアウトになりました。
該当のソースコード
c#
1 2 var driver = new ChromeDriver(); 3 driver.Manage().Timeouts().ImplicitWait=TimeSpan.FromSeconds(360); // Set implicit wait timeouts to XX secs 4 driver.Manage().Timeouts().PageLoad= TimeSpan.FromSeconds(360); // Set pageload wait timeouts to XX secs 5 driver.Manage().Timeouts().AsynchronousJavaScript = TimeSpan.FromSeconds(360); // Set pageload wait timeouts to XX secs 6 7 driver.Url = @"https://mw-s.jp/chrome-print/"; // ここで例外が発生 8
試したこと
最初360秒は60秒にしてました。
補足情報(FW/ツールのバージョンなど)
OS:Windows10(1803)
Microsoft Visual Studio Community 2017
Version 15.8.1
VisualStudio.15.Release/15.8.1+28010.2003
Microsoft .NET Framework
Version 4.7.03056
Selenium.WebDriver 3.141.0
ChromeDriver74

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/06/04 02:27
2019/06/04 02:28
2019/06/04 03:53