Hi,
I checked your example. StringComparator matches the regular expressions BUT EditorLocator class doesn't.
Today I've also recorded the following actions (below, the code).
- Code: Select all
ui.click(new TreeItemLocator("Eq_Maps_open_both/1", new ViewLocator(
"de.inframe.ise.navigator.views.NavigatorView")));
ui.assertThat(new SWTWidgetLocator(CLabel.class).isVisible());
Now, I want to get the LABEL from the wrapper (CLabel.class), but it returns NULL. I thought that is happening becouse of the ambigous identification of this CLabel.class and I"ve tried to be more specific, by giving the SWTWidgetLocator an extra argument, that is: a regular expresion that defines the label names that appear (regex = "*.(in|out)")
- Code: Select all
ui.click(new TreeItemLocator("Eq_Maps_open_both/1", new ViewLocator(
"de.inframe.ise.navigator.views.NavigatorView")));
ui.assertThat(new SWTWidgetLocator(CLabel.class, "*.(in|out)").isVisible());
After that modification, the windowtester runtime, timed-out (expected=true, actual=false)
Pls Help,
Diana.