|
|
|
@ -423,7 +423,10 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
|
|
|
|
private AppiumWebElement GetWindow(string identifier) |
|
|
|
{ |
|
|
|
return GetWindow(identifier); |
|
|
|
// The Avalonia a11y tree currently exposes two nested Window elements, this is a bug and should be fixed
|
|
|
|
// but in the meantime use the `parent::' selector to return the parent "real" window.
|
|
|
|
return Session.FindElementByXPath( |
|
|
|
$"XCUIElementTypeWindow//*[@identifier='{identifier}']/parent::XCUIElementTypeWindow"); |
|
|
|
} |
|
|
|
|
|
|
|
private int GetWindowOrder(string identifier) |
|
|
|
|