WidgetInfo button_2 = getObjectByName("button_2");
//
List<WidgetHandle> handles = panel.getWidgetHandles();
assertThat(handles).hasSize(2);
{
WidgetHandle handle = handles.get(0);
assertSame(button_1, handle.getWidget());
Rectangle bounds = handle.getBounds();
assertEquals(new Rectangle(0, 9, 45, 27), bounds);
}
{
WidgetHandle handle = handles.get(1);
assertSame(button_2, handle.getWidget());
Rectangle bounds = handle.getBounds();
assertEquals(new Rectangle(45, 9, 42, 27), bounds);
}
}