How to handle push notification? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to handle push notification? ...

How to handle push notification?

Code Snippet:

//Here we have Initialized driver as AppiumDriver 
((AndroidDriver) driver).openNotifications();
ListnotificationTitles = driver.findElements("android:id/title"));

for (WebElement title: notificationTitles) {
 String extractTitle = title.getText();
 if (extractTitle.contains("I'm a simple notification")) {
*** Users can get the apk from

Leave a Reply

Your email address will not be published. Required fields are marked *