How to get value from web page via Ranorex

Ask general questions here.
User avatar
Burhanku
Posts: 2
Joined: Wed Nov 19, 2014 7:28 am

How to get value from web page via Ranorex

Post by Burhanku » Wed Nov 19, 2014 7:34 am

Hi everybody, Good morning. Sorry for my little bit English :oops:

First of all, I want to get value on web page, after that I want to compare it with DateTime.Now.AddMinutes(1);

How can i get this innertext on web page? i can share screenhot which Iwant it.

Thanksssss a lot ^^
Attachments
lastseen.PNG
lastseen.PNG (3.35 KiB) Viewed 1083 times
Regards,

After that, wow what happened to meeee ^^

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

Re: How to get value from web page via Ranorex

Post by odklizec » Wed Nov 19, 2014 9:57 am

Hi,

What you are looking for is "Get Value" action (GetAttributeValueText method). Use this action to obtain the value and store it in a variable. Then compare this variable via code.

The question is, if Ranorex is able to read the date value from the element in question? Have you tried to track the element with Ranorex Spy? The text you want to compare may not be available in the InnerText attribute but may be found somewhere else, e.g. AccessibleValue, Text, etc.

For a detailed tutorial how to get the values from web pages, check for example this blog article:
http://www.ranorex.com/blog/sharing-dat ... to-another
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

User avatar
Burhanku
Posts: 2
Joined: Wed Nov 19, 2014 7:28 am

Re: How to get value from web page via Ranorex

Post by Burhanku » Wed Nov 19, 2014 10:13 am

odklizec wrote:Hi,

What you are looking for is "Get Value" action (GetAttributeValueText method). Use this action to obtain the value and store it in a variable. Then compare this variable via code.

The question is, if Ranorex is able to read the date value from the element in question? Have you tried to track the element with Ranorex Spy? The text you want to compare may not be available in the InnerText attribute but may be found somewhere else, e.g. AccessibleValue, Text, etc.

For a detailed tutorial how to get the values from web pages, check for example this blog article:

Thank you for your help and interest, I can get value now which I want.

You are perfect! :oops:
Regards,

After that, wow what happened to meeee ^^