appium-flutter-driver
appium-flutter-driver copied to clipboard
Appium can only find one element when detecting a list of elements with generated valuekeys
I have a button(s) in my flutter app that will appear as many times as a given input; using it for a detecting bluetooth devices. So for every bluetooth device it finds, it has a connect button. To find this button on appium, I added keys that increments for each button that shows up. For example, 'connect1', 'connect2', etc. by adding this right below the button widget
key: ValueKey('connect${index + 1}'),
This does result in generating keys such as 'connect1', 'connect2', etc...
However, when I try to click each button and use find.byValuekey, it finds the first element but does not find the next element, and is left hanging. Has anyone had this issue before? Is there a workaround??