Mobile browser automation

How to handle default system generated pop ups for android browser(google chrome) automation?

Have you tried

driver.switchTo().alert().dismiss()
//or accept()

?

Thanx Sergey… I used that but it is throwing NoAlertPresentException: no alert open
is there any other way to solve this?
meanwhile i also set capability to capabilities.setCapability(“autoAcceptAlerts”, true); and it is working but i am still able to see popup on the screen.

Ok. I think there is server-side issue. Please report it with attached server logs here: https://github.com/appium/appium/issues

I have found the solution for this particular problem:

driver.navigate().back();