zoukankan      html  css  js  c++  java
  • Selenium遇到的问题记录:“The operation has timed out”

    问题如下:

    Error converting value "OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:60428/session/42277796c94c6a00778b4863cf27c37d/url timed out after 60 seconds.
    ---> System.Net.WebException: The operation has timed out.

    解决方法如下:

    注意标红的那2行

    ChromeOptions chromeOptions = new ChromeOptions();
    chromeOptions.AddArgument("no-sandbox");
    chromeOptions.AddArguments("headless");//隐藏google
    IWebDriver webDriver = new ChromeDriver(ChromeDriverService.CreateDefaultService(), chromeOptions, TimeSpan.FromMinutes(3));
  • 相关阅读:
    蓝牙遐想
    BT stack浅入了解
    集合(set)
    字典练习
    数据类型--字典
    数据类型--元组
    字符串
    深浅copy
    python---list
    三种Div高度自适应的方法
  • 原文地址:https://www.cnblogs.com/wjx-blog/p/14309210.html
Copyright © 2011-2022 走看看