小编Cod*_*ger的帖子

以编程方式启动用于Selenium测试的.NET Core Web应用程序

我目前正在尝试在Core Web应用程序上设置一些UI测试,但是我无法启动Web应用程序.从Web应用程序目录直接使用命令行"dotnet run"工作.当我在执行测试之前尝试使用Process来运行它时,问题就出现了.

    var process = new Process
    {
        StartInfo =
        {
            FileName = "dotnet",
            Arguments = "run",
            WorkingDirectory = applicationPath
        }
    };
    process.Start();
Run Code Online (Sandbox Code Playgroud)

有没有人在遇到类似的问题之前和/或设法解决它?我可能会误用Process.

c# selenium selenium-webdriver .net-core

6
推荐指数
1
解决办法
1222
查看次数

标签 统计

.net-core ×1

c# ×1

selenium ×1

selenium-webdriver ×1