one sort of test cases we write for our application is for testing the tab order.
For this I start at a widget, press the tabulator key (WT.TAB) and check if the widget I expect now has the focus.
Some sample code looks like this:
- Code: Select all
...
ui.click(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_TXT_SEARCH_REGION_COUNTRY"));
ui.assertThat(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_TXT_SEARCH_REGION_COUNTRY").hasFocus());
ui.keyClick(WT.TAB);
ui.assertThat(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_TXT_SEARCH_REGION_ZIP").hasFocus());
ui.keyClick(WT.TAB);
ui.assertThat(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_TXT_SEARCH_REGION_STREET").hasFocus());
ui.keyClick(WT.TAB);
...
This works fine with buttons or text widgets, but with tool items and section titles I get a timeout exception.
- Code: Select all
...
ui.keyClick(WT.TAB);
ui.assertThat(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_TI_SAVE_WORK_SCHEDULE").hasFocus());
ui.keyClick(WT.TAB);
ui.assertThat(new NamedWidgetLocator("NAME_WORK_SCHEDULE_VIEW_LBL_SEARCH_WORKGROUP").hasFocus());
...
For both assertions I get a timeout exception.
Could you please tell me if there are any known restrictions?
Is there maybe another way to do tests like this?
Do you know if other widget types are also not supported?
Thanks in advance for helping!
Cheers,
Göksel