We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f90a868 commit 3316e84Copy full SHA for 3316e84
tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
@@ -423,7 +423,10 @@ private IDisposable OpenWindow(
423
424
private AppiumWebElement GetWindow(string identifier)
425
{
426
- return GetWindow(identifier);
+ // 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");
430
}
431
432
private int GetWindowOrder(string identifier)
0 commit comments