title: Appium Detect Alertdialog
body: <p>I'm writing a UI test script in Python, after performing a click, there might be an alert window popping up. If so, I need to press a button on that window. I wonder if there's a way to detect alert dialogs in Appium API? Thanks.</p>
  
  <p><a href="https://i.stack.imgur.com/aDZQW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aDZQW.png" alt="enter image description here"></a></p>