Forum Discussion

mattm's avatar
mattm
New Contributor
9 years ago
Solved

When I use "Drag the target to point to the object" the incorrect area highlighted

This is preventing me from closing the popup configuration page (ie the x for close is outside the area). I tried editing the co-ordinates but this is restricted to the border (see screenshot below) ...
  • Colin_McCrae's avatar
    Colin_McCrae
    9 years ago

    If it's a canvas, I suspect you're stuffed.

     

    A canvas is pretty much just an image. We use them in certain embedded software with products we make. The screen comprises an assortment of buttons. They are all added to the canvas to form one big image and thats what displayed to the user. The interface has an associated XML file which maps out the "hotspots" (aka - co-ordinates) of all the buttons on the canvas panel.

     

    But the canvas, is completely unusable as a testable object.

     

    Thankfully, I never have to test the products that use these with TestComplete. If I did, I would have to parse the XML file to do anything meaningful with the canvas ....

     

    If you can get it's relative screen co-ordinates and size, can you not work out an offset for the X/Close button based on the size of the canvas and/or corner co-ordinates? (And then just apply a click at that point to close it)