Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Widget ID's for composites(Would like ID for testing using selenium)
Widget ID's for composites [message #912614] Thu, 13 September 2012 21:20 Go to next message
George R Malary is currently offline George R Malary
Messages: 36
Registered: March 2012
Location: New Jersey
Member
Just a general question, I know we have WidgetId's for most widgets, but there are certain things that we cannot assign id's to.

For selenium testing, we identify UI objects using these unique id's. Would there be a way to assing an id to a Composite itself? This would make most things much easier to find, as we wrap everything up in Composites anyway. I see though firebug that all composites are assigned an random id anyway, "w78xxxx".

Just a thought, that would solve some of our issues where we have to navigate the DOM to find widgets.
Re: Widget ID's for composites [message #912761 is a reply to message #912614] Fri, 14 September 2012 06:06 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1821
Registered: July 2009
Senior Member
Hi,
I think that you can assign a custom id to the Composites in the same
way. Composite is just a widget like all others.
composite.setData( WidgetUtil.CUSTOM_WIDGET_ID, "myCustomId" );
Best,
Ivan

On 9/14/2012 12:20 AM, George R Malary wrote:
> Just a general question, I know we have WidgetId's for most widgets,
> but there are certain things that we cannot assign id's to.
>
> For selenium testing, we identify UI objects using these unique id's.
> Would there be a way to assing an id to a Composite itself? This
> would make most things much easier to find, as we wrap everything up
> in Composites anyway. I see though firebug that all composites are
> assigned an random id anyway, "w78xxxx".
>
> Just a thought, that would solve some of our issues where we have to
> navigate the DOM to find widgets.

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Widget ID's for composites [message #913048 is a reply to message #912761] Fri, 14 September 2012 17:01 Go to previous message
George R Malary is currently offline George R Malary
Messages: 36
Registered: March 2012
Location: New Jersey
Member
Thank you very much. I could have sworn I tried this before, and it didnt work. I just may be going crazy. Worked perfectly.

Only remaining annoyance is getting rows in a table, but I believe there is an issue open for that, where each row would get assigned some id based on row number.

Thanks again.
Previous Topic:Showing columns sortable, and highlighting current column that is sorted
Next Topic:Focus on a Text in a Dialog
Goto Forum:
  


Current Time: Tue Sep 30 16:00:37 GMT 2014

Powered by FUDForum. Page generated in 0.03549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software