有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

firefox如何在java中运行headless模式

我正在使用firefox/chrome驱动程序运行JavaSelenium测试

我想在后台运行测试

在ruby中,我使用这个宝石

https://rubygems.org/gems/headless

用java怎么做


共 (2) 个答案

  1. # 2 楼答案

    另一个选项是使用基于HtmlUnit项目的HtmlUnitDriver,该项目是“无GUI浏览器”

    //create webdriver
     WebDriver driver = new HtmlUnitDriver();