To test your application, you may need a Widget ID. In order to do that, there is some methods on Beagle to set and get this Widget IDs.
On this section, you’ll see two specific ones:
The method Set Id is used when you need to set an Id on a widget provided by the BFF. To do so, you just have to call this method on the widget you want to set the Id during the moment you’re creating your widget.
See how this works on the link below:
Text(text = "Text with id").setId("myTextId")
On the Get Id case, you have different ways to set it according to each frontend platform. Check out below:
On iOS, the Id is registered on
accessibilityIdentifier. So, to use then, you just need to use the same value used on
See how it works on the example below:
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.