Skip to content

Commit 3316e84

Browse files
committed
Fix macOS intgr tests bad merge
1 parent f90a868 commit 3316e84

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,10 @@ private IDisposable OpenWindow(
423423

424424
private AppiumWebElement GetWindow(string identifier)
425425
{
426-
return GetWindow(identifier);
426+
// The Avalonia a11y tree currently exposes two nested Window elements, this is a bug and should be fixed
427+
// but in the meantime use the `parent::' selector to return the parent "real" window.
428+
return Session.FindElementByXPath(
429+
$"XCUIElementTypeWindow//*[@identifier='{identifier}']/parent::XCUIElementTypeWindow");
427430
}
428431

429432
private int GetWindowOrder(string identifier)

0 commit comments

Comments
 (0)