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));
  • 相关阅读:
    SCRUM站立会议
    燃尽图
    第一次作业----词频统计
    构建之法读感
    final 评论 II
    final 评论 I
    第十一周PSP
    学期回顾
    第十周PSP
    Gradle学习笔记
  • 原文地址:https://www.cnblogs.com/wjx-blog/p/14309210.html
Copyright © 2011-2022 走看看