Windows Automation: Set search context

Certified Associate Developer

Can someone please help with the "Set search context" on Windows Automation Tutorial? The part of the workflow that Switch to Notepad sometimes works but does not work most of the time with this error message:  "The element could not be found". Below are the screenshots of the configuration set up: 

Thank you in advance

  Discussion posts and replies are publicly visible