Object not recognizing
We are having the JInternalFrame object. Inside that object, a white area appears(Just as it appears in MS Paint). We have to draw the objects in the white area. But the objects of the white area and drawn objects in the white area are not recognized.
The hierarchy of the objects are .
1. JInternal Frame
2. White board
3. Objects drawn on the white board(Eg. circle, rectangle).
Is there any solution to find the objects drawn on the white board ?
Thanks in advance
Re: Object not recognizing
Sort of. The TestObject classes provide some useful methods for this, such as "invoke", "getField" etc. You can use them to query the objects directly.
Talk to the developers of it. Say to them, "given an instance of 'the white board' (look at the class name in the object map), how do you:"
</font><ul type="square">[*]<font size="2" face="Verdana, Arial, Helvetica">get a List of the displayable objects within the pane</font>[*]<font size="2" face="Verdana, Arial, Helvetica">given one of those items, how do you get it's bounds (Rectangle).</font>[/list]<font size="2" face="Verdana, Arial, Helvetica"> Once you can do these things, your test can list the objects in the window, identify one of them (on your own there, every app is different), then specifically click on it using whiteBoard().click(atPoint(x, y));
The simplest way to implement it would be a static helper class, with methods such as "dragCircle", "dragRectangle".
If you know Java, it's doable. If not, have a dev help you out.