Type into activity, expected text attribute, is it support wildcard? like *

Hi guys!

Type into activity, expected text attribute, is it support wildcard?
If type into string like 123, but the target text 123456 can pass the validation.

BR,
Donghai

@donghai

Can you please explain what you mean

cheers

Hi @donghai ,

Can you please help us with the screenshot if possible.

Thanks

I don’t think it supports wildcards. What do can do is just use a Get Text after your Type Into. After the Get Text, use an If to check the value with, for example, foundText.StartsWith(typedString) which would mean if typedString is 123 then foundText has to start with 123.

@Anil_G @suraj.setty

Please refer below image

@postwick this function support verify element, but in my scenario can only use text to verify.

BR,

@donghai

One thing you can do is to indicate the same element and in text or input field in selector pass the text and a wild card

cheers

@Anil_G

Thanks your reply. Let’s we wait a moment, whether there is has a amazing way. :slight_smile:

BR,
Donghai

1 Like

@donghai

You cannot have a privilege to verify wild cards and I have a doubt that how can you expect when you type “123” and expect “123456” as output. Verification is only because to check whether the exact text is typed or not. I don’t think it is useful to have wildcards in it.

Another thing you can do is getting the text in the cell and add “123” at the start like if text in the cell is “456” then after activities it becomes “123456”.

I am aware of the expected text property. I explained that it doesn’t support wildcards, and how you can check the value manually with a Get Text and then If.

However, it appears you are typing into an Excel file. That’s not the correct way to work with Excel. There are specific activities for Excel, you don’t use UI automation (ie Type Into).

I suggest doing the free training on the UiPath Academy web site to learn how to do this stuff.

@postwick
Thanks your post, I just used excel make a example. As you say, It’s not support wildcards now.
@Vankayalapati_Varun_Chowd
Thanks.

1 Like

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