我想问问你:有没有什么办法可以运行在我的一个应用程序方法启动过程中打开的进程?
我正在写在WPF应用程序,这是我想在后台运行我的Firefox的驱动程序(硒):程序在后台打开应用程序
//create driver using existing profile
IWebDriver driver = new FirefoxDriver(ffprof);
//change a position (browser is invisible on the screen but after 1-2 sec since ff opened so
//this is not a solution :(. And it exist on taskbar.
driver.Manage().Window.Position = new System.Drawing.Point(-2000,0);
//change webdriver url
driver.Url = url;
//Save this ff proces to variable
Process ffProcess = HelpMethods.GetFirefoxProcess();
当Firefox将运行作为后台进程的另一个问题,我可以工作与它通常(例如更改网址或在网站上做某事)?
你说的“在后台运行的意思“?隐藏的浏览器窗口? – Andrew
过程启动时是隐藏窗口 – kamciono5