How to use Indicate on screen to click on Message Box OK button

uiautomation
studio

#1

Hi,

I want the robot to close message box by clicking on OK button. But when I am using Callout ativity or Click activity after message box , I can’t capture Indicate on screen activity, as It is done after \i click on OK button. If I save output of message box in string variable how can I use it to click OK button on message box. Please help.

Thanks


#2

Hi @Adi,

Refer this post
Issue with identifying element inside popup in chrome

Regards,
Arivu


#3

Hi @arivu96,

Not working. I just want robot to click message box’s OK button after it is displayed. PFA my simple workflow. How can I do that? Please assist.

hello orch.xaml (5.3 KB)

Thanks


#4

Hello @Adi,

I also tried running your workflow a lot but no luck.
Please have a look at screenshot that I put one more message box after indicate on screen activity.

Message%20Box

Thanks,
Pankaj


#5

Hi @Adi,

Could you explain what are you trying to achieve over here by doing this?

I’ll be better able to explain to you once I can understand what scenario or situation requires this particular flow. Accordingly, it’ll help us identfy what can be a possible work-around or solution to it, depending on the requirement.

Regards,
Abdullah.


#6

I don’t think you can close the Message Box using the same bot. One work around is you could use Auto Closing Message Box, below is the custom activity if you wish to use.

https://www.myget.org/F/uipath-community/api/v2/package/MessageBoxActivities/1.0.3

image


Closing of uipath message box automatically
#7

Just create another sample workflow with message box and run that workflow, message box will be displayed and use click activity in your main workflow inside parallel activity with message box and identify the OK button of your message box and modify your selector if required.


#8

This is exactly what I was refining, this is the way it can be done.

The only thing to do to make this work is that open a second UiPath window and from there use “Click Button” Activity to get the target/selectors.

Cut/Copy Paste this “Click” Activity back into your original workflow within a “Parallel” activity, something like this:

Screenshot of “Parallel” Activity

I used an “invoke workflow activity” to run your flow, but for you @Adi, you’ll have your message box there along with the click activity.

Also, to ensure things work smoothly, I’d suggest to add a delay via the properties of the “click button” activity. Under “DelayBefore” write say “1000” since it takes it in microseconds and 1000 MS = 1 second.

Let us know what works for you (and what doesn’t. :stuck_out_tongue:).

All the Best!

Regards,
Abdullah


#9

This is doable as well, for some reason slipped my mind.


#10

thanks @abdullahnj it worked :slight_smile: . Cheers


#11

Hi @Adi,

You are very much welcome mate! :smiley:

Please feel free to reach out to me or the forum if you have any more queries or hiccups!

I’m sure there’s always someone to help out!

All the Best! Cheers!

Regards,
Abdullah


#13

Hi Abdul…can you please tell me how you resolved…if you have screenshot,can you share me…since I am not able to place message box activity in parallel activity


#14

Hi @guptha10,

Are you still facing the problem?

Regards,
Abdullah


#15

hi abdul, can you explain more this, i want to close a message box automaticly after showing it like 5 seconds


#16

Hi @ilahrech
After displaying the message box then keep the click event and try to find the selector for close the message box

For this message box
image

image

so as like your message box using the UiExplorer get the selector.

Thanks
RaviDevaraj


#17

Please go through this workflow…

CloseMessageBox.xaml (8.4 KB)

regards,
Pathrudu


Want to click on the OK button of Message box for all the times