We're currently working on improving our forms support which will address this situation.
What's the text of the Section?
Assuming it is "Rules", you should be able to do something like this:
- Code: Select all
ui.click(new ButtonLocator("Add", new SectionLocator("Rules")));
Unless there is more than one button called "Add" in the Section (in which case you'll want to use indexes).
In any event, if this does not work for you, please open a ticket with support so we can track the feature and email@example.com