Unable to select notepad popup

Following Assoc Dev course, trying to automate the search and replace feature of notepad. I am unable to select any of the fields on the popup dialog from Studio. I’ve tried changing the UI Framework (F4) but it doesn’t do anything. This is a simple thing, why doesn’t it see the popup?

Just curious, is it really needed to use that via the UI? This can be replicated by reading all the text in the notepad and from the read text, just use .replace. For example strText = strTextFromNotepad.Replace(“the text you want to find”,“the text you want to replace it with”)

Yes, I figured that out and am already using that approach. I’m asking because the academy course I am on specifically is demonstrating the technique of selecting the popup window input fields and buttons, and I am unable to follow along with the lesson. Just curious why it works in the video, but not in actuality. Is it a bug in the newest version of notepad or studio? Or am I missing something?

My guess is the difference in notepad versions. As you may have noticed the find and replace “pop up” in new notepad does not really look like a pop up but something more of like a hovering item. I guess it can still be used but you might need to explore on which selectors will work. Perhaps use the UI explorer tool of Studio to have a closer look at the available selectors

@Terry_Marr,

You will have to depend on Computer Vision selector as there is no strict or fuzzy selector.

Try this code.

Workflow.xaml (12.4 KB)

Thanks,
Ashok :slight_smile:

I suspect you are right. This makes UiPath very brittle, if the popups can’t be selected now. Sure, there is a workaround by writing text files directly, but what about other applications? If someone out there knows how to select this popup in the new notepad version, I’d appreciate knowing how.

Thank you for this. I see that you selected the “Replace” button in the popup in the “check app state” activity. But I am still unable to do that, I simply cannot select the popup either from the “type into” activity nor the “check app state” activity. How did you do that?

@Terry_Marr,

Nothing different than just highlight the element and CV selectors found. It may be due to studio version difference. I have latest community version.

Does my code works on your studio?

Thanks,
Ashok :slightly_smiling_face:

Ok. Yes it works now. I didn’t see the “Show All CV Elements” thing on the bottom. Once I clicked that I was able to select the popup elements.

Can you explain to me what “computer vision” elements are? Are they new? How do they work? Why are they not included in the Academy tutorials – at least the ones I’ve been following so far? Is this the wave of the future?

@Terry_Marr,

It’s not new thing but it’s the last option or approach we use when we don’t find right strict or fuzzy selectors.

Kindly mark the answer as solution so it will be helpful to other community members.

Refer these few pointers to learn more about it.

https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://docs.uipath.com/activities/other/latest/ui-automation/selection-options-mobile-automation%23:~:text%3DComputer%2520Vision,-Selects%2520UI%2520elements%26text%3DThis%2520feature%2520uses%2520a%2520UiPath,are%2520otherwise%2520unable%2520to%2520automate.&ved=2ahUKEwjLzeD89YqFAxXFrlYBHQyYCp0QFnoECBIQBQ&usg=AOvVaw0Do4J82cfnFdUTEowtGkWm

Thanks,
Ashok :slightly_smiling_face:

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