How to remove characters from Web Element query result?

Hi All,

We have an internal web application in my office and my task is to do the healthcheck of that app daily.

I need to compare the website date with my system date.

How ever i am using web element and xpath to get the date but am getting unwanted things in the result like - Effective Date: 07/12/2018 Last Updated: 5:32PM

i only want 07/12/2018 as final result.

since Effective Date: 07/12/2018 Last Updated: 5:32PM is in single line so may be due to that xpath is copying the entire sentence.

Please let me know how to fetch the date only or how can i convert Effective Date: 07/12/2018 Last Updated: 5:32PM to 07/12/2018

image

You can remove the symbols you don’t need in the result using Substring Between action:

Thanks alot Will try now, thanks for your support. 5 cheers to you.

Wow its working like a charm… God bless you mam

1 Like