You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing automation testing on a Flutter app using Appium, elements on the login screen are not identifiable by their Accessibility ID on Android. Despite using Semantics, assigning unique keys, and other best practices, input fields such as username and password are still not being detected or validated during automation. This issue prevents the automated test cases from interacting with these elements, entering user credentials, and completing the login process.
Steps to Reproduce:
1. Open the Flutter app’s login screen on an Android device/emulator.
2. Use Appium Inspector to inspect the elements.
3. Observe that elements are not detectable by Accessibility ID or similar attributes, even when Semantics or Key has been implemented.
4. Attempt to validate and interact with the input fields during automation.
Expected Behavior:
• Each input field (e.g., username, password) and button (e.g., login) should have a unique Accessibility ID to facilitate automated interaction and validation.
Actual Behavior:
• The Accessibility ID attribute is missing or not being exposed, even when Semantics or Key is used. This makes it impossible to locate and interact with the elements using Appium for automation testing.
This issue blocks automation testing of critical features like login functionality in Flutter apps. It affects testing efficiency and increases the manual intervention required for validation.
Request:
• Please investigate why Accessibility ID is not being exposed for elements, even when Semantics and Key are used.
• Suggest alternative approaches or fixes to make elements identifiable for Appium in Flutter apps on Android.
The text was updated successfully, but these errors were encountered:
When performing automation testing on a Flutter app using Appium, elements on the login screen are not identifiable by their Accessibility ID on Android. Despite using Semantics, assigning unique keys, and other best practices, input fields such as username and password are still not being detected or validated during automation. This issue prevents the automated test cases from interacting with these elements, entering user credentials, and completing the login process.
Steps to Reproduce:
1. Open the Flutter app’s login screen on an Android device/emulator.
2. Use Appium Inspector to inspect the elements.
3. Observe that elements are not detectable by Accessibility ID or similar attributes, even when Semantics or Key has been implemented.
4. Attempt to validate and interact with the input fields during automation.
Expected Behavior:
• Each input field (e.g., username, password) and button (e.g., login) should have a unique Accessibility ID to facilitate automated interaction and validation.
Actual Behavior:
• The Accessibility ID attribute is missing or not being exposed, even when Semantics or Key is used. This makes it impossible to locate and interact with the elements using Appium for automation testing.
Code:
`Semantics(
label: 'username_field',
child: TextField(
key: Key('username_field'),
decoration: InputDecoration(
hintText: 'Enter username',
),
),
);
Semantics(
label: 'login_button',
child: ElevatedButton(
key: Key('login_button'),
onPressed: () {
// Login action
},
child: Text('Login'),
),
);`
Impact:
This issue blocks automation testing of critical features like login functionality in Flutter apps. It affects testing efficiency and increases the manual intervention required for validation.
Request:
• Please investigate why Accessibility ID is not being exposed for elements, even when Semantics and Key are used.
• Suggest alternative approaches or fixes to make elements identifiable for Appium in Flutter apps on Android.
The text was updated successfully, but these errors were encountered: