I have written some tests for a plug-in that is generating PDF files from XML. Now as a new feature there pops up a message if something with the XML is wrong, asking if the PDF should be generated anyway. The test waits forever to this modal dialog. Since the XML is complex I cannot predict the title of the message box and what is say. Can be something like "LONGNAME Handling" or "Missing Element" in title and some corresponding message. But SWT.NO and SWT.YES are used. So it should be possible to hit the yes-bottom. I have read the documentation for a while but I cannot figure out a way to always hit the SWT.YES button. Perhaps I overlook something.
Would be nice if I can so something like this:
- Code: Select all
ui.click(new MessageBoxLocator(), SWT.YES);
But this is not supported. Is there any way to do this?