I'm struggling to give several ids to my data grids using gwt in order to ease the frontend testing using robotframework with selenium library.
How can I add an id to each header and row of the data grid or cell grid?
And to the whole datagrid?
Thanks in advance.
GWT has
DebugInfoclass which createsdbgattribute where you can add your custom information. So you can do like this for example:And your selenium can find element:
This way will work for whole data grid. To search headers with selenium you can just compare text from header itself the same way
Actually you can
.getText()from anyWebElement