I am calling NamedWidgetLocator with a specific Widget Type and it still gives too many widget found.
- Code: Select all
ui.click(new NamedWidgetLocator(Button.class, "xyz"));
- Code: Select all
com.windowtester.runtime.MultipleWidgetsFoundException: Multiple Widgets Found:
looking for
NamedWidgetLocator("xyz")
and found:
WidgetReference(Button {...})
WidgetReference(Text {})
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:606)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
I think this is a bug.
Thanks,
- Arpit