Hi there,
I'm testing a RCP-application and I have the problem, that a few textfields are not located by the LabeledTextLocator, but by the SWTWidgetLocator. The Problem is, that these textfields must be checked according to their user input. The SWTWidgetLocator does not implement the HasTextCondition. Therefore I tried to use the NamedWidgetLocator to locate the textfields. I named one of these textfields to check if it works. Unfortunately it doesn't work.
The widget is declared as follows: IntegerInput veText = new IntegerInput(ekhekGroup, SWT.Border);
I named the widget as follows: veText.setData("name", "txtVE");
In the testcode I wrote: ui.assertThat(new NamedWidgetLocator("txtVE").hasText("5"));
The test stops in fact of the WidgetNotFoundException: Widget NOT Found: NamedWidgetLocator("txtVE").
What am I doing wrong? Can someone help me?
Thanks in advance,
Julia