Tia*_*tro 4 c# selenium phantomjs
我在我的应用程序中使用selenium + phantomjs,但我想在后台启动我的应用程序,selenium和phantomjs窗口.我该怎么做?
我试过了:
PhantomJSOptions options = new PhantomJSOptions();
options.AddAdditionalCapability("start-maximized", false);
IWebDriver driver = new PhantomJSDriver(Environment.CurrentDirectory + @"\drivers", options);
Run Code Online (Sandbox Code Playgroud)
var serviceJs = PhantomJSDriverService.CreateDefaultService(phantomPath);
serviceJs.HideCommandPromptWindow = true;
Instance = new PhantomJSDriver(serviceJs);
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1216 次 |
最近记录: |