Tuesday, February 6, 2024

Autogenerate IDs for eatch widget

Hello everyone.
I have a GWT application and for testing purposes ( using external UI testing tools ) i need that each widget to have an ID set. i know it is possible by using ensureDebugID(), but this approach will take forever to change in my project and is very error prone.

So my question, is there any way i can set an ID to each widget automaticly ?
Perhaps some kind of hook, so when a widget is added to DOM i can set the ID.
This id will be only used in test, not in production.

Thank you very much for any suggestions.
BR,
Sebastian

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/daaabb20-06db-496a-b637-ca7d6272e1e4n%40googlegroups.com.

No comments:

Post a Comment