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
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
Regards
Anil_G
(Anil Gorthi)
March 7, 2023, 6:09am
3
@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
Tuannna1
(Tuan Anh)
March 7, 2023, 6:13am
4
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
ushu
(Usha kiranmai)
March 7, 2023, 6:40am
5
Hi @karthik_kulkarni1 Please check the below link
hi, i need help on how to extract text if its a button on a website.
Lets say that i want to extract the text “SIGN UP” from facebook.com
thank you so much.
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
2 Likes
ppr
(Peter Preuss)
March 7, 2023, 9:05am
9
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