Handling Non-Text Elements in UiPath Automation

Hey #UiPathCommunity, I’m currently working on a project where I’m facing a unique challenge. I need to run a report by entering a keyword in a specific input box, but before I can type into the field, there’s an “Any” icon that acts like a variable button (not just text). If I try to click and backspace, it deletes the entire keyword entry.

The solution to input keywords and run the report using Type Into activity is pretty straightforward. But the tricky part is how to remove this “Any” icon programmatically before typing anything. Since this is not standard text, simply setting it to an empty string won’t work.

Have any of you encountered something similar? How did you approach this in UiPath?

You should be able to use the Click activity to click that X next to Any.

Every time the text changes the one i add could be longer then any how can i create a dynamic selector for this. Or is there a way i can click and do a back space. And then do type into?

The Type Into activity includes the ability to clear the field.

image

I thought it always has Any at first, and you need to remove Any and then type your own?

At first it always has any which needs to be removed and add text and enter to select anything else from the dropdown. Then once that is done then need to remove the text i added from the previous run and add another text and enter my question is this doesnt seems to be like text it is a button will that clear with type into ? Because when i manually click and press back space it deletes.

So use a Click to click the X next to Any.

Use a Type Into, then a Keyboard Shortcuts to press Enter.

Couldn’t you just refresh the search page or something to get it back to being “Any”?

So do that. Use a Click activity to click the field. Then use a Keyboard Shortcuts activity to backspace.

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