How do I get the value of an element

Ask general questions here.
OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 2:58 am

How do I get the value of an element

Post by OPT-Liuxm » Mon Jun 22, 2020 1:52 am

Hello, everyone!

May I ask...
About how to get the value of an element, such as text content or numeric size.

How should I operate?

Thanks. :D :D

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

Re: How do I get the value of an element

Post by odklizec » Mon Jun 22, 2020 4:52 am

Hi,

Could you please post a Ranorex snapshot of the element, from which you want to get the value? Without seeing the snapshots, all I can tell is that you need to use GetValue action, where you need to specify element’s attribute (InnerText, Text, Label, etc.), from which you want to get the value and a variable, where the value will be stored.
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

OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 2:58 am

Re: How do I get the value of an element

Post by OPT-Liuxm » Mon Jun 22, 2020 6:08 am

I want to get this number and print it in the results report.
Get Value?I don't know how to use it.
You do not have the required permissions to view the files attached to this post.

OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 2:58 am

Re: How do I get the value of an element

Post by OPT-Liuxm » Mon Jun 22, 2020 6:14 am

I seem to know how to use it. Just a moment, please. :D

OPT-Liuxm
Posts: 29
Joined: Sat Jan 11, 2020 2:58 am

Re: How do I get the value of an element

Post by OPT-Liuxm » Mon Jun 22, 2020 6:41 am

Yes, just use "get value". :D :D
thank you

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

Re: How do I get the value of an element

Post by odklizec » Mon Jun 22, 2020 6:56 am

Hi,

You are welcome ;)
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