-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Appium tests do not detect content inside Flyout Detail on iOS #16245
Description
Description
Overview
We are currently in the process of Migrating Xamarin.Forms to .NET MAUI. To ensure that our features are working as expected we Utilize set of unit, integration and UI tests. UI Tests are written using Appium.
Our application's UX is heavily based on Flyout page. Unfortunately, on iOS platform, the Appium driver is not able to recognize the content inside the flyout details page.
This behavior can be observed using Appium Inspector as well. Take a look at the bellow screenshots that show the Appium inspector running against the Maui app with a Flyout page and comparing it with the Forms equivalent
Appium inspector running against the Maui app
Flyout selected inside a Maui app
Detail selected inside a Maui app
As you can see in the second screenshot the selected node that corresponds to the Detail page is completely empty and when you click on it the whole screen becomes "blue" denoting that the detail page is not actually selected.
Appium inspector running against the Forms app
Flyout selected inside the Forms app
Detail selected inside the Forms app
Notice how the node that corresponds to the detail page has children and you can drill until you reach the Page2Label
Version details
Appium - 2.0.0
XCUITest - 4.32.6
Steps to Reproduce
- Clone the sample on a Mac
- Ensure that Appium together with XCUITest drivers are installed
- Launch the appium server
- Run the
FlyoutPlayground.Forms.iOSin a simulator with a Release mode to generate the*.apppackage - Run the
FlyoutPlayground.Mauiin a simulator with a Release mode to generate the*.apppackage - Set the
SampleToRunproperty inside theUITests\appsettings.jsonto "Forms" - Run the UI tests and observe they are working as expected
- Set the
SampleToRunproperty inside theUITests\appsettings.jsonto "Maui" - Run the UI tests and observe they failing
Link to public reproduction project repository
https://github.com/kyurkchyan/MauiFormsAppiumTests
Version with bug
7.0.49
Last version that worked well
6.0
Affected platforms
iOS
Affected platform versions
Tested iOS 16
Did you find any workaround?
No response
Relevant log output
No response



