Hi Team
could you please help me to get css-selector based on innertext.
Regards,
Lavanya A
Hi Team
could you please help me to get css-selector based on innertext.
Regards,
Lavanya A
what exactly do you mean by innertext?
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.
please mark as solution if this helpful
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
You can’t. css-selector and innertext are two separate properties.
To get any property use the Get Attribute activity. However, css-selector may not be an actual property of the Ui Element, but is something made up by UiPath.
But why do you want to get the css-selector? They’re not reliable, don’t use them.