TestProject Forum

How to read data formats

Hi, is there a way to read from a text field a date time value in order to be able to compare it (check if it’s greater than) against another parameter value ?

Hi @mbertol4, the first part to your question is answered in Search specific Field & fetch it's value. This explains how you can use Get Text, you may need to tweak the xpath if it doesn’t fetch it properly.

To compare the values, there is an addon called compare dates but I haven’t used it before. It doesn’t look like it includes a time element to it, only date.