Lesson 2 - Practice 1 Walk through error getting while closing the application

issue

#1

Hi,

Can anyone please help me to fix the below issue, while closing the notepad application.

The output panel showing the below error:
Lesson 2_Assign01 execution started
Close application 'notepad : Value does not fall within the expected range.
Lesson 2_Assign01 execution ended in: 00:00:02

Thanks in advance.


#2

Hi,

There is usual more than one way to do a cretin action.

You can try one other following:

  • Close Windows
  • UI Automation > Element > Mouse > click
  • Use Recording

Regards


#3

Currently, if you follow the training to the next page you can download a sample that does indeed work and should make the missing requirement clearer.

In the sample the Close Application activity includes a screenshot of the open notepad.exe application.

I haven’t found that requirement actually documented anywhere though :frowning:

CloseApplicationImageSample

Using the Indicate on Screen link in the Close Application activity to point to a running Notepad instance actually ends up automatically populating the Selector property. That is really what is required.

You can always use the UiExplorer tool available from the Studio ribbon to find the correct Selector XML snippet and just enter it manually without the image. In this case it’s <wnd app='notepad.exe' cls='Notepad' title='Untitled - Notepad' />

Either method works.