Unable to copy selected text when selector doesnt exist

Hi,

I have a problem application which creates ui elements on the fly (ie. the field id changes each time). I would like to copy text from a particular field. I have used the Click image activity to successfully select the text, but the copy selected text just either errors out or displays a null value. I’ve also tried using the Send Hotkey (Control + C) option, again with no luck due to a selector being required.

Is there a way I can do this please? Any help would be very much appreciated. Thanks!

Hi @TRX

Did you try to use an Anchor Base Activity, you can use another UiElement that contains a selector that does not changes (e.g. A label). Dependinding on the Studio version you are using you can even define more than one anchor with the last UiAutomation activities.

Best,
Andres

Thanks Andres, I’ll give that a try.

I was just wondering, is there a way to use the Type In activity to Type Into a field without declaring the selector? For some reason the bot is unable to type into a particular field when no selector is present.

Thanks