【发布时间】:2020-02-07 13:27:08
【问题描述】:
我有一个 Windows 窗体应用程序。运行包含 selenium (geckodriver) 的项目,它正在打开一个Command Window。怎么隐藏?
下面我附上了我的代码:
public partial class Form1 : Form
{
IWebDriver driver = new FirefoxDriver();
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
driver.Navigate().GoToUrl("https://www.google.com");
}
}
【问题讨论】:
标签: c# selenium selenium-webdriver webdriver geckodriver