diff --git a/samples/IntegrationTestApp/ShowWindowTest.axaml b/samples/IntegrationTestApp/ShowWindowTest.axaml
index ed23797ad7..bd6910dd4d 100644
--- a/samples/IntegrationTestApp/ShowWindowTest.axaml
+++ b/samples/IntegrationTestApp/ShowWindowTest.axaml
@@ -37,13 +37,11 @@
-
-
-
-
-
-
+
+
+
+
diff --git a/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs b/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
index 948fb3225f..6921a23161 100644
--- a/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
+++ b/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
@@ -150,8 +150,8 @@ namespace Avalonia.IntegrationTests.Appium
{
using (OpenWindow(new Size(4000, 2200), ShowWindowMode.NonOwned, WindowStartupLocation.Manual))
{
- var measuredWithTextBlock = _session.FindElementById("MeasuredWithText");
- var screenRectTextBox = _session.FindElementById("CurrentClientSize");
+ var screenRectTextBox = _session.FindElementByAccessibilityId("CurrentClientSize");
+ var measuredWithTextBlock = _session.FindElementByAccessibilityId("CurrentMeasuredWithText");
var measuredWithString = measuredWithTextBlock.Text;
var workingAreaString = screenRectTextBox.Text;