Locates a widget that is immediately adjacent to (e.g., following) a Label widget with the given label text.
For instance, this locator:
new LabeledLocator(Text.class, "File:");
identifies a Text widget that is preceded by the "File:" label.
(A widget w1 is considered to be preceding another widget w2 if they are siblings with the same Composite parent c1 and the index of w1 is just before the index of w2 in c1's list of children.)
ui.click(new LabeledLocator(MultiValueText.class, "Headline:"));
Could you explain what is the reason for restricting the search to immediate parent composite ?
Users browsing this forum: No registered users and 1 guest