Scroll By, Scroll, Get Attribute?

Hello Amit,
I was trying to get the text from a field which is located down on the page. I need to scroll a lot to reach that field.
So 1. I scrolled down 2. Selected field 3. Chose the option “Get Attributes”. and saved it.

While test run I get an error stating “GetAttribute web element cannot be found”.

How can I deal with this situation?

Regards,
Shriyash

Hi,

May be the web element is not getting loaded. Kindly check using Control Exists interaction if the control exists and then use Get Attribute interaction on that UI element

Regards,
Amit Anand

Hello Amit,
It worked, I applied control exist and added a delay.

One more question, I have to get the attribute
Eg.“Implementation Date:* XX-Month-XXXX”
Currently, It is extracting the whole line but I am only interested in the Date part.
Is there any way to get the only date part?

Regards,
Shriyash.

Hi,

Try using string functions available to get the value you need

Regards,
Amit Anand

Hello Amit,
Sorry I don’t understand how to proceed with this.

As you can see from PIC, system is extracting whole sentence, I just want the date.
I tried extracting specific location using inspect element and locating CSS selector but no success.

Can you help me with this?

Thanks in advance.

Regards,
Shriyash

Hi,

Try using substring function to get the slice of string which you require

Regards,
Amit Anand