mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
start WinAppDriver from the default installation path
This commit is contained in:
@@ -17,17 +17,9 @@ namespace Microsoft.FancyZonesEditor.UITests
|
|||||||
[AssemblyInitialize]
|
[AssemblyInitialize]
|
||||||
public static void SetupAll(TestContext context)
|
public static void SetupAll(TestContext context)
|
||||||
{
|
{
|
||||||
string? sourceDirPath = Environment.GetEnvironmentVariable("SrcPath"); // get source dir in CI
|
string winAppDriverPath = "C:\\Program Files (x86)\\Windows Application Driver\\WinAppDriver.exe";
|
||||||
if (sourceDirPath == null)
|
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriverPath}");
|
||||||
{
|
appDriver = Process.Start(winAppDriverPath);
|
||||||
sourceDirPath = Path.GetFullPath($"{Environment.CurrentDirectory}" + @".\..\..\..\..\..\"); // local
|
|
||||||
}
|
|
||||||
|
|
||||||
context.WriteLine($"Source dir: {sourceDirPath}");
|
|
||||||
string winAppDriver = Path.Combine(sourceDirPath, @".\deps\WinAppDriver", "WinAppDriver.exe");
|
|
||||||
|
|
||||||
context.WriteLine($"Attempting to launch WinAppDriver at: {winAppDriver}");
|
|
||||||
appDriver = Process.Start(winAppDriver);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[AssemblyCleanup]
|
[AssemblyCleanup]
|
||||||
|
|||||||
Reference in New Issue
Block a user