I am trying to click ‘OK’ button when a pop up appears. I have used check app state and the bot is able to detect Pop up message. When it tries to Click "It throws error “The automation execution failed due to a browser dialog obstructing the UI element.” I tried changing selector and click mode to Hardware also but its not working
Use another Use Application/Browser activity and indicate the Popup.
Inside this activity use Click activity to click on the Ok button. You can enable Continue on error for Click Ok button activity so if the popup doesn’t appear, your bot will not break.