Skip to content

Replies

0
sasha
sasha answered on Oct 27, 2011 9:08 PM

Thanks for the reply, Nooruddin. The application provided an export to excel feature and I am able to do my sorting and max value from the xported excel than the Wpf grid. I would be in touch since I am dealing with a lot of WpfGrids.

I really appreciate your quick reply!

Thanks,

Sasha

0
sasha
sasha answered on Oct 25, 2011 1:46 PM

Nooruddin –

Mouseevent helped to scroll down. However, I have tables of different length at each time. I am failing to arrive at a good number of scrolls (to pass into Mouse scroll event).

I do not see the table as a WpfTable. Object spy only shows and QTP only recognizes the control as WpfObject !

As I was trying to explain in the previous post, I am now given a feature to sort the column by double clicking on the column header. so then I dont need to scroll down but sort in descending order and get the first row's interested column value (using getcelldata).

So I have a different issue now..Not the scrolling but to sort by double click on the column header (of the WpfObject). I cant access the columnheader by any means. When I try to record sorting step, it gets recorded as WpfWindow("Window1").WpfObject("Object1").Click 611, 15. This doesnt help since the columns are so adjacent to each other, replay ends up cliking on the wrong column always..and I need to double click.. not just Click.

🙁 thats where am stuck now! Thanks again!

 

0
sasha
sasha answered on Oct 24, 2011 10:41 PM

Thanks, Nooruddin!

I have a long list of values which is seen only partially on the screen. I need to retrieve the max value of a specific column for which I had to scroll to end since the column was displayed in ascending order. Now that I have got a solution of sorting the column, I can double click on the column header and have the maximum value on top. However, I dont know a method to access the column header of the wpfobject for sorting.

WpfWindow("Window1").WpfObject("Object1").GetCellData(rowNum ,columnNum) gets me the celldata. But I have no means to click or double click on the columnheader. This being the 13th column, I can go uptil  WpfWindow("Window1").WpfObject("Object1").GetCellData(0,columnNum) which gives me the first row 13th grid value. ("M" in the following sample)

C1

C2

C3

C4

C5

C6

C7

C8

C9

C10

C11

C12

C13

C14

C15

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

I hope the problem is clear now. Thanks much for your help!

btw, when I was researching on the scroll issue, I found this useful post by Yaara Tobaly http://www.advancedqtp.com/forums/index.php?action=printpage;topic=5151.0 

-Sasha

 

0
sasha
sasha answered on Oct 21, 2011 8:16 PM

I face a similar issue with WpfObject inside a WpfWindow.  Please help.

WpfWindow("Window Name").WpfObject("ObjectName").GetCellData(RowNum, "columnName") provides the cell value as long as the cell is in the visible screen. I have 300 to 1000 items to be displayed in the cell. There is no item name to provide in the ScrollIntoView method. The object spy shows the cell as WpfObject inside WpfWindow("Window Name").WpfObject("ObjectName").

Thanks in adavance for your help!