|
Re: Widget ID's for composites [message #912761 is a reply to message #912614] |
Fri, 14 September 2012 06:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Ivan Furnadjiev![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=ivan%40eclipsesource.com) Messages: 2429 Registered: July 2009 Location: Sofia, Bulgaria |
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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04110 seconds