Skip to content

Commit 9bb3080

Browse files
committed
Work around WinAppDriver/Appium issue
1 parent 17858fa commit 9bb3080

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UITests/TestBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ private static WindowsElement WaitForPageHeader(string name)
5454
{
5555
for (int i = 0; i < 100; i++)
5656
{
57-
var header = Session.FindElementsByName(name).Where(x => x.GetProperty("AutomationId") == "PageHeader").First();
58-
if (header != null)
57+
var header = Session.FindElementByAccessibilityId("PageHeader");
58+
if (header != null && header.Text == name)
5959
{
6060
return header;
6161
}

0 commit comments

Comments
 (0)