How to Automate Mobile Push Notification using Appium (Android)?

Hi All,

I am trying to automate Push notification testing using Appium.
But facing a issue when we open the Notifications overlay, using androidDriver.openNotifications();

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, “Android”);

capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, “8.3”);

capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, “emulator-5554”);

capabilities.setCapability(“platformVersion”, “4.4.2”);

androidDriver = new AndroidDriver(new URL(“”), capabilities);

Then script is failing with error:

Kindly suggest any idea on automating those


Train Asked on April 18, 2016 in Appium.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.