Widget ID's for composites [message #912614] |
Thu, 13 September 2012 21:20  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02862 seconds