Micro Focus QTP (UFT) Forums
[UFT] Wpf Label: click on image into cell - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: [UFT] Wpf Label: click on image into cell (/Thread-UFT-Wpf-Label-click-on-image-into-cell)



[UFT] Wpf Label: click on image into cell - robertosalemi - 05-02-2016

Hi,
I have a WpfTable datagrid.

In the first column, the cell have text and image as the screenshot.

I would click on red x, but:
- the record operation doesn't capture the object 'x'
- the spy operation doesn't get the object, but only WpfTable object.

How can I click on red 'x' for each single cell?

I should use the coordinates, but I not would use this way.

Thanks.


RE: [UFT] Wpf Label: click on image into cell - robertosalemi - 05-03-2016

As temporary solution, I'm using this code:
Code:
WpfWindow("myApp").WpfTable("myGrid").Click 132,25

But I would not use the coordinates.

Suggestions?

Thanks.