Page 1 of 1

How to get value from web page via Ranorex

Posted: Wed Nov 19, 2014 7:34 am
by Burhanku
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 ^^

Re: How to get value from web page via Ranorex

Posted: Wed Nov 19, 2014 9:57 am
by odklizec
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

Re: How to get value from web page via Ranorex

Posted: Wed Nov 19, 2014 10:13 am
by Burhanku
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: