How to get text from dynamic date label

Hello
I have this dynamic date and I want to save it to variable
How can I do that ?
If I disable the aaname or inertext from the selector it is not recognaized.

255

Hi @mironb,
If aaname contains the value that you want, then you could enable it and get the value using the “Get Attribute” activity (by using aaname as the attribute)

Thanks,
Nishant

@mironb

You can use regex in selector so aaname you can use like this

<webctrl ….. aaname=‘\d{2}\.\d{2}\.\d{2} .*’ matching:innertext=‘regex’ />

Cheers

image
image

@mironb

You missed matching: in the selector and please replace the single quote again in code

Cheers

I copy what you wrote

image

I understood I changed it but still doesn’t recognized
image

@mironb

image

I still dont see matching here

Cheers

What do you mean by mactching ?
I am new in UiPath

@mironb

This is the syntax for writing a regular expression pattern in a selector

Cheers

Where I insert it ?
I did it in the selector window but the validate is red

@mironb

Its a format…please check the link…

In the selector i see you are not given

<wnd app='applicationframehost.exe' appid='Microsoft.WindowsCalculator_8wekyb3d8bbwe!App' title='Calculator' /> <uia cls='LandmarkTarget' /> <uia automationid='CalculatorResults' name='Display is \d' role='text' matching:name='regex' />

Cheers

I put it llike this but why the validate is red ?

image

@mironb

Can you show the original selector with aanamme please…and also please remove prentid or instead od numbers in it use *

Cheers

image

@mironb

Please try this

<webctrl tag='Strong' class ='colorText' innertext='\s*\d{2}/\d{2}/\d{2}\s*' matching:innertext='regex' />

Cheers

Error

image

@mironb

I missed a single quote after colorText …please incliude it

To verify it is correct values will look in blue and tags will look in red

cheers