通过Process.Start c#运行控制台时,控制台关闭

时间:2018-12-05 11:07:16

标签: c#

是否可以关闭控制台?

Actions actions = new Actions(driver);

Actions action = new Actions(driver);

//1st method            
            actions.clickAndHold(circle).moveByOffset(555,575).build().perform();           
action.release(destination).build().perform();
actions.clickAndHold(rect).moveByOffset(726,598).build().perform();
action.release(destination).build().perform();*/


//2nd method

actions.clickAndHold(circle).moveToElement(destination,331,151).build().perform();
action.release(destination).build().perform();
            actions.clickAndHold(rect).moveToElement(destination,584,137).build().perform(); action.release(destination).build().perform();     actions.clickAndHold(src).moveToElement(destination,82,367).build().perform();
action.release(destination).build().perform();

//3rd method

actions.dragAndDropBy(circle, 331, 151);
actions.dragAndDropBy(rect, 584, 137);
actions.build().perform();

//4th method

actions.dragAndDrop(src, destination); 
actions.dragAndDrop(rect, destination);
.bat文件中的

代码- Process process; process = Process.Start(@"C:\Users\Bapcuk\source\repos\Server\Server\bin\Debug\Servers\MyServer\start.bat"); process.WaitForExit(); break;

0 个答案:

没有答案