Page 1 of 1

How to get the text of a certain table element?

Posted: Wed Aug 04, 2010 2:17 pm
by CharlesF
Hi guys,

Given the name of a process, I need its CPU and memory use. So I want to capture the text of a certain cell in the Task Manager table. For example, a process is in row 14 and its "memory" cell is like below:
container[@caption='Processes']/table/row[@index='14']/cell[@text='152,500 K']
In C# script is there a way to get the text of this cell and report it?

Thanks a lot,
Charles

Re: How to get the text of a certain table element?

Posted: Wed Aug 04, 2010 3:35 pm
by Support Team
Hi,

Please take a look to following post
http://www.ranorex.com/forum/looping-th ... t1347.html
If you adapt the code a bit, you can use it for your behavior.

Regards,
Peter
Ranorex Team