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