Hello,
I am new to Ranorex and I am trying to to achieve below
1. How to read the strings of two fields
2. convert strings into date
3. Compare date and find latest one
Could you please help.
Thanks,
Compare two innertext
Re: Compare two innertext
Hi,
Please post a Ranorex snapshot (NOT screenshot) with both fields.
Generally speaking, you can get the content of fields via GetValue action, then you have to use user code to convert both string variables to date, using DateTime.Parse(String value) method and then compare them with DateTime.Compare(DateTime, DateTime) method. Hope this helps?
Please post a Ranorex snapshot (NOT screenshot) with both fields.
Generally speaking, you can get the content of fields via GetValue action, then you have to use user code to convert both string variables to date, using DateTime.Parse(String value) method and then compare them with DateTime.Compare(DateTime, DateTime) method. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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