【问题标题】:How to run a selenium webdriver script written in java using IE driver in silent mode [duplicate]如何在静默模式下使用 IE 驱动程序运行用 java 编写的 selenium webdriver 脚本[重复]
【发布时间】:2016-02-29 20:49:39
【问题描述】:

我已经用 java 编写了我的 selenium webdriver 脚本,并想在 IE 中运行它们但不打开浏览器。有没有办法做到这一点

【问题讨论】:

标签: java selenium-webdriver


【解决方案1】:

使用这个:

HtmlUnitDriver driver = new HtmlUnitDriver(BrowserVersion.INTERNET_EXPLORER_11);

参考:http://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/htmlunit/HtmlUnitDriver.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多