How to get message from pop up error?

What is the accurate activity to use to get an error message from a pop-up in uipath ?
And also the error message in the pop-up is dynamic. How do we make the selector adjust to it so that it will get whatever error message ? . Any help would be much appreaciated thanks.

Right now I use screen-scraping full text , is that accurate ?

Original Selector

<wnd ctrlid='65535' title='Cant rename "Pictures" because a file or folder with that name already exists*' />

image

Thanks for any idea. :slight_smile:

Hi, regarding this particular error: how did you manage to get it by robot? You can rename (move) files with built-in activities

My problem is not specific to that . My only goal is to get the error message. That error is on the app inself not specific to robot.

Have a try to look through your error message with UiExplorer

upd. Simple Get Text activity also handles ‘Can’t rename because…’ message successfully

You say you may get several errors: what kind of?

But what if the error message is dynamic ? it is not always ‘Can’t rename because…’ ?
here is the selector , should I make the title aaname = ‘*’ ?

<wnd ctrlid='65535' title='Cant rename "Pictures" because a file or folder with that name already exists*' />

Why not simply

title=’*’

how about removing ctrlid=‘65535’ ?

Does your original selector contains any other tags? I’ve just tried on my machine and got much more of them.
I would prefer to delete that ctrlid at all, but it nonsense to have only title=’*’ as a selector

this is all

You better take screenshot to get a picture of error popup
Taking screenshot doesn’t get text of popup but you can get information from it

get text does not get the message from the pop-up