read a text

Best practices, code snippets for common functionality, examples, and guidelines.
Fearx17
Posts: 2
Joined: Tue Jun 21, 2016 6:32 pm

read a text

Post by Fearx17 » Tue Jun 21, 2016 6:54 pm

how can i read the text from this cell

https://drive.google.com/open?id=0B0Ams ... kFTU2N2SVk

if i try to read it, i read "true" or "false", depending the state of the check box

help!! thaks!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: read a text

Post by odklizec » Wed Jun 22, 2016 9:35 am

Hi,

Please upload a Ranorex snapshot of the problematic cell. Screenshot is unfortunately not useful here. What kind of technology is the tree element (java, wpf, etc...)? Also, what Ranorex version do you use?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

Fearx17
Posts: 2
Joined: Tue Jun 21, 2016 6:32 pm

Re: read a text

Post by Fearx17 » Wed Jun 22, 2016 3:16 pm

thanks for the quick answer.

https://drive.google.com/file/d/0B0Ams0 ... sp=sharing

The technology i am working is .Net

screenshot:

https://drive.google.com/open?id=0B0Ams ... 0JBdkhVOVU

i need to read the text from this cells, and save it in a variable for the next prosess

Really thanks!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: read a text

Post by odklizec » Wed Jun 22, 2016 4:06 pm

Hi,

As I've expected, the tree control in question is a 3rd party control, in this particular case Infragistics UltraTree control. Sadly, because of the implementation of some 3rd party controls (their lack of proper implementation of accessibility), Ranorex cannot identify some elements.

Probably your only hope is something called InvokeRemotely, which could help with setting/getting data to/from .Net controls. Check for example these (old but still relevant) blog posts:
http://www.ranorex.com/blog/transfering ... t-control/
http://www.ranorex.com/blog/design-for- ... utomation/
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration