I am not sure if that’s possible currently because the moment camera is opened, it goes beyond control of Flutter driver to perform any action since the camera is platform related ie Android and not framework related. There doesn’t seem to be a way yet to test this flow in realtime.
If you would like to tap on
Take a Picture button from
PrimaryButton class, you can try to use
byValueKey which uniquely identifies the element on screen. For this, you’ll need to use
key property of the said button and pass a value, as below:
Thanks for reading my article. I am glad that you found it useful. Regarding your question to test google sign-in authentication, that is currently not possible using flutter driver. Infact interacting with any social media sign using flutter driver is not possible as of today. I’ve highlighted this in my another article on Flutter driver…
Tri Trieu, thanks for reading and appreciating my article. I am glad you found it useful. Regarding your question on validating button’s state (enabled / disabled) using Flutter driver, it doesn’t provide explicit method out of box, but we can achieve it by writing a custom method.
Hi Christian, glad that you found this article helpful. Looking at the error you are getting, it seems to me that the way you are fetching data from load method may be incorrect. Please take a look at the json structure and accordingly validate if you are parsing the data correctly. Hope this helps.