Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Setting "ID" for TableItem(Setting WidgetUtil.CUSTOM_WIDGET_ID value)
Setting "ID" for TableItem [message #814801] Tue, 06 March 2012 17:48 Go to next message
Ronald So is currently offline Ronald So
Messages: 198
Registered: April 2011
Senior Member
Hello,

We have a need to attach an unique ID for UI components to allow our Selenium automation tests to detect the UI components and run test. We have no problem setting IDs for most components, such as Button, Composite, even Table. Now, we want to set an ID for a table ROW. The closest Java class for a row is TableItem. When I try to set WidgetUtil.CUSTOM_WIDGET_ID in TableItem.setData(), the ID never shows up in the corresponding HTML code. Does anyone have an idea why it does not work?

Thank you,
Ronald
Re: Setting "ID" for TableItem [message #816097 is a reply to message #814801] Thu, 08 March 2012 07:21 Go to previous messageGo to next message
Nick Mussin is currently offline Nick Mussin
Messages: 10
Registered: December 2011
Junior Member
Hello Ronald,

currently it is not possible to set an ID on a row.

Could you further describe your use case? Do you want to have the ID of the TableItem that is currently displayed by the row to show up as the row-ID?

The other option is to have a row with a certain ID, regardless of which TableItem is displayed by this row.

Regards,
Nick
Re: Setting "ID" for TableItem [message #816215 is a reply to message #816097] Thu, 08 March 2012 10:06 Go to previous messageGo to next message
George R Malary is currently offline George R Malary
Messages: 36
Registered: March 2012
Location: New Jersey
Member
Hi Nick,

I am Ronald's colleague. We would like each row in a table to have a unique id. The ID could be of the form "row_1", "row_2", etc ... That would suit our needs. We can then write our automation tests written in selenium to find our table, then find each child row, and perform actions against columns in the desired row.

Regards,

George
Re: Setting "ID" for TableItem [message #817243 is a reply to message #816215] Fri, 09 March 2012 15:52 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi George,

I'm Nick's colleague ;-) For me that sounds reasonable and I think it
shouldn't be too hard to implement. Would you mind filing an enhancement
request in our bugzilla [1]?

Regards, Ralf


[1] http://eclipse.org/rap/bugs/

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Setting "ID" for TableItem [message #820989 is a reply to message #817243] Wed, 14 March 2012 16:34 Go to previous message
Ronald So is currently offline Ronald So
Messages: 198
Registered: April 2011
Senior Member
Enhancement logged.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=374311

Thanks.
Previous Topic:[Text] new Text(parent, SWT.MULTI | SWT.V_SCROLL);
Next Topic:Eception in UIThread
Goto Forum:
  


Current Time: Fri Aug 01 18:44:27 EDT 2014

Powered by FUDForum. Page generated in 0.02906 seconds