This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
SWT Layer usage
jpeterka edited this page Aug 10, 2012
·
10 revisions
SWT Layer provides API for SWT direct Widgets and Control manipulation partially based on SWTBot and other API.
just add org.jboss.reddeer.swt
into your MANIFEST.MF
// Object lookup
Shell shell = new WorkbenchShell();
// Object state read
assertEquals("Eclipse",shell.getTitle());
// Object lookup
Button button = new PushButton("Ok");
// Object manipulation
button.click();
WidgetNotAvailableException - widget was not found or it's unavailable, usually thrown by widget constructor
WidgetLostException() - widget was available but it's lost, usually thrown by widget method
DuplicateWidgetException() - multiple objects fulfils matching criteria