c# - Selenium - 更改页面加载
问题描述
导航到带有以下内容的 url 时遇到以下异常wd.Url = url
:
OpenQA.Selenium.WebDriverException: "The HTTP request to the remote WebDriver server for URL ... timed out after 60 seconds."
因为我已经知道这个异常,所以我输入了以下内容:
wd = new ChromeDriver(cds, co);
wd.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(240);
wd.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(10);
但这并没有改变任何东西。例外保持不变。我认为这很奇怪,因为它至少应该改变超时的时间跨度。