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
I've encountered an issue with retrieving the enabled and displayed statuses of elements. To resolve this, I switched to the 'NATIVE_APP' context, which allowed me to interact with text fields (e.g., writing to them and retrieving their text) and access button statuses such as enabled and displayed.
However, I’m currently struggling to retrieve the button's text. How can I modify the button widget in order to access its text?
Additionally, is there a better approach for getting the element status (e.g., isDisplayed, isEnabled) within the 'Flutter' context or maybe to use another flutter driver? What’s the recommended best practice for automating Flutter apps?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I’m new to Flutter app automation and i'm writing automation tests in Java using the following dependencies:
I've encountered an issue with retrieving the enabled and displayed statuses of elements. To resolve this, I switched to the 'NATIVE_APP' context, which allowed me to interact with text fields (e.g., writing to them and retrieving their text) and access button statuses such as enabled and displayed.
However, I’m currently struggling to retrieve the button's text. How can I modify the button widget in order to access its text?
Additionally, is there a better approach for getting the element status (e.g., isDisplayed, isEnabled) within the 'Flutter' context or maybe to use another flutter driver? What’s the recommended best practice for automating Flutter apps?
I will be glad for java code example.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions