Skip to content

Commit

Permalink
Use different winappdriver port
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelwgn committed Aug 25, 2023
1 parent 62c33a4 commit 17858fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions UITests/SessionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace UITests
[TestClass]
public class SessionManager
{
private const string WindowsApplicationDriverUrl = "http://127.0.0.1:4723";
private const string WindowsApplicationDriverUrl = "http://127.0.0.1:11118";
private static readonly string[] WinUIGalleryAppIDs = new string[]{
"Microsoft.WinUI3ControlsGallery.Debug_grv3cx5qrw0gp!App",
"Microsoft.WinUI3ControlsGallery_grv3cx5qrw0gp!App"
Expand Down Expand Up @@ -62,11 +62,11 @@ public static void Setup(TestContext _)
// WinAppDriver is probably not running, so lets start it!
if (File.Exists(@"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe"))
{
Process.Start(@"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe");
Process.Start(@"C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe", "11118");
}
else if (File.Exists(@"C:\Program Files\Windows Application Driver\WinAppDriver.exe"))
{
Process.Start(@"C:\Program Files\Windows Application Driver\WinAppDriver.exe");
Process.Start(@"C:\Program Files\Windows Application Driver\WinAppDriver.exe", "11118");
}
else
{
Expand Down
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ steps:

- task: Windows Application Driver@0
inputs:
OperationType: "Start"
AgentResolution: "1080p"
OperationType: 'Start'
WADArguments: '11118'
AgentResolution: '1080p'

- task: VSTest@2
inputs:
Expand Down

0 comments on commit 17858fa

Please sign in to comment.