Extract text inside a copy button

Hello,

I have a website in that after clicking on a particular button(here it is a copy button) I need to get the text under it.
when I tried I am unable to do can anyone suggest what activity I should use

image

from the above button I need to get the text inside it which I am unable too.

Hi @karthik_kulkarni1

you can use the get attribute activity with the innerText attribute
image

Regards

@karthik_kulkarni1

Please use ui explorer and first identify the area that you need to retrieve…

And then use the selector in get text activity to get the required text…

You can as well use get attribute and select aaname or innertext attributes

Hope this helps

Cheers

1 Like

Hi @karthik_kulkarni1

I have a library to help you do that with any attribute on the website:
Get css-selector based on innertext.

Get.CSS.Property.1.0.3.1.nupkg (28.5 KB)

Regards,
TuanNNA

1 Like

Hi @karthik_kulkarni1 Please check the below link

1 Like

after clicking on copy button I will get a value which is dynamic and changes every time.
I shouldn’t get copy as text.

@karthik_kulkarni1 As you said its changes every time then you can make inertext → dynamic by putting (*)

1 Like

Hey @karthik_kulkarni1
Have you tried get attribute make the text field (or the field that is constantly changeing) dynamic by using *
Just a example is given below in the ss
image
image

2 Likes

Could it be the case that the text is after clicking copy within the clipboard?

1 Like

Sorry guys it was simple but I have taught so much, I got solution as below
used click activity and then copy from clipboard

2 Likes