Pop-up window advanced assignment 2

Hey guys,

im stuck at the point when you have to click “OK” on the pop-up window when no report has been found for a specific month for a work item. I used 2 element exist activities because i receive two kinds of pop-ups (see the following post: Assignment 2: No report found Pop-Up Window). After the 2 element exist activities i put an IF activity where i used the 'Click" activity on the ‘OK’ button when one of the two pop-up windows exist. When i run the bot it does not work consistently, somtimes it does, sometimes it doens"t. I dont understand why uipath does not find the pop-up window when it occurs. please, see attachment for printscreen of the selected area and the selectors.

For both pop-up windows, i set the timeout at 2000 and the wair for ready on interactive.

Thank for any help

Hi Guys,

I am facing 2 ‘OK’ pop-up issue mentioned above. Their selectors are different.

  1. <wnd app='iexplore.exe' cls='#32770' title='Message from webpage' />
    <wnd aaname='Message from webpage' cls='DirectUIHWND' />
    <wnd cls='Button' title='OK' />

  2. <wnd app='iexplore.exe' cls='#32770' title='Message from webpage' />
    <wnd ctrlid='2' title='OK' />

Has anyone find the solution for this. If so, please guide me…

Thank you in advance!

1 Like

Making the selector more generic will solve your issue. If you see there are enough attributes to do that.
<wnd app='iexplore.exe' cls='#32770' title='Message from webpage' /> <wnd title='OK' />

Hi Nadim,

Thank you for the response.

Yeah, I found it yesterday, forgot to update here.
Along with this, Element Exists selector also needed to be changed as:

<wnd app='iexplore.exe' cls='#32770' title='Message from webpage' />
<ctrl name='No report found' role='text' />*

We can close this call.

Thank you once again :slight_smile:

1 Like

Yes, :slight_smile:

this much also will do :slight_smile:

Cool :sunglasses: :+1: