I am trying to record the action of selecting a date (e.g. 18.01.2011) by means of clicking on the day buttons on a org.eclipse.swt.widgets.DateTime widget with style SWT.CALENDAR.
To support the recorder to generate readable code I named the widget with .setData(key,value). The resulting code is unfortunately not useful because just the widget is clicked and not its "sub widgets", i.e. the date buttons.
- Code: Select all
ui.click(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_BTN_DATE"));
ui.wait(new ShellShowingCondition("Kalender"));
ui.click(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_DT_CALENDAR"));
ui.click(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_DT_CALENDAR"));
ui.click(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_DATE_CLIENT_BTN_OK"));
How much support is there for such a widget by WT and how can I get this work?
Thanks,
Göksel