How to get css-selector based on inner text

Hi Team
could you please help me to get css-selector based on innertext.

Regards,
Lavanya A

what exactly do you mean by innertext?

indicate -> then click the drop down button on that activity.

1 Like

in a webpage I want to click text box based on label…the text box id is dynamic.so I am finding the element on the textbox name.

@LavanyaManoj
if the text box id is dynamic…, in the selector id…, you replace the id with this *

example:
id = 1
you replace with
id = *

yes…based on label name id…i have to pass the value to text box.

try replace the whatever dynamic selector with *

or

just uncheck the whatever dynamic selector if not needed.

Wifa,I am want css-selector value in variable based on inner text.

then this might be the solution if you know how this activity works

https://forum.uipath.com/t/how-to-get-css-selector-based-on-inner-text/104319/3?u=wija

this activity can return the value of your selector attributes:
such as i believe you see ‘aaname’ selectors many times already,
that activity can return the value of the ‘aaname’ selectors.

example in selector:
aaname = LavanyaManoj

with that activity you can print out : LavanyaManoj

here,
there’s ‘innerText’ option that you want in Get Attribute activity.Untitled

please mark as solution if this helpful :slight_smile:

1 Like

Thank you. based on innertext, I want to get the output as css-selector value.could you please help on this.

BlankProcess.zip (10.2 KB)

i can’t find innerText selector in any websites, only found css-selector.
so my example in this workflow is aaname selector -> css-selector.

hope this helpful

1 Like