How to create function for catching any warning alert box?

Hello @lovepong66 , You can detect the pop by using the element Exist Activity, It results value in a Boolean, If the dialogue box appears you can design the flow to click the OK button, Else continue the process as per your requirement.