You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Selenium运行ChromeDriver时出现错误,寻求解决方法

我在使用Selenium运行ChromeDriver时遇到了如下错误:

使用Selenium运行ChromeDriver时出现错误

我使用的代码如下:

public class ChromeTest {

    @Test
    public void LaunchChrome_Method2() {
        ChromeOptions options = new ChromeOptions();
        options.addArguments("disable-infobars");
        options.addArguments("--start-maximized");
        WebDriver driver = new ChromeDriver(options);
        driver.get("http://www.google.com");
    }

}

这段代码参考自自动化测试相关教程网站。

内容的提问来源于stack exchange,提问作者tijnn

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:47:25