【发布时间】:2023-01-24 23:50:57
【问题描述】:
我是 QA 的新手,我第一次尝试自动化微软边缘版本 109.0.1518.61并得到这些错误:These are the error i am getting first2nd error
- SLF4J:无法加载类“org.slf4j.impl.StaticLoggerBinder”。
- SLF4J:默认为无操作 (NOP) 记录器实现
- SLF4J:有关详细信息,请参阅http://www.slf4j.org/codes.html#StaticLoggerBinder。
- 线程“main”中的异常 org.openqa.selenium.WebDriverException:未知错误:net::ERR_CONNECTION_CLOSED
我将其用作 Maven 项目。代码块没有错误。我的整个代码块如下:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;
public class BrowserTest {
public static void main(String[] args) {
EdgeOptions options = new EdgeOptions();
options.addArguments("edge.switches","--disable-extensions");
WebDriver Driver = new EdgeDriver(options);
Driver.get("https://seleniumhq.org/");
}
}
【问题讨论】:
标签: java selenium selenium-webdriver selenium-edgedriver