Custom Dialog not detected in Android

Hi All,

I am trying to automate a test case scenario where I need to click ‘ok’ of a custom dialog, but the mobile does not detect the popup nor the recorder to record the actions.

Is there anyway I can detect the popup. Please help.

Thank you.