How to handle dynamic selector

Hello

I have this Selector
image
That should find this text with numbers
image
I need to click this every day, the text is always the same - and only the numbers changed
How can I declare the selector that will click it successfully
Thanks

@mironb

try with this

<webctrl tag='A' innertext='\s*TestSetSearch - \d*\.\d*\s*' matching:innertext='regex' />

cheers

can you elaborate more on what is to achive in general. The case looks like it has a potential to get it alternate solved by using a rest api call

Hi,

How about the following?

strDate = DateTime.Now.ToString("yyyyMMdd")

Then, selector is as follows:

aaname='*TestSetSearch - {{strDate}}*'

Regards,

Thank you very much it is works fine

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.