I need to test an RCP App which uses a Canvas to display high resolution graphics.
Within this canvas you can zoom and move within the graphics as well as paint on them.
The recorder is capable to find the Widget :
- Code: Select all
ui.click(new XYLocator(new SWTWidgetLocator(Canvas.class,
new SWTWidgetLocator(Composite.class, 0, new SWTWidgetLocator(
CTabFolder.class))), 786, 102));
but it didn't realize that i need the coordinates where i dragged to :
- Code: Select all
ui.dragTo(new SWTWidgetLocator(Canvas.class, new SWTWidgetLocator(
Composite.class, 0, new SWTWidgetLocator(CTabFolder.class))));
as you see it just records the target component but that's not enough for my purposes.
My question is :
How can i modify the recorder's localization behaviour to automatically solve this problem?