Hi, i’m trying alarms and reminders in Android, when i set alarm in five minutes, the alarm puts a notification after that minutes and always contains the same text in the title. But when notification appears, appium usually not found that element. Can you help me? my code is here:
WebDriverWait wait = new WebDriverWait(driver, 360);
wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//android.widget.TextView[@resource-id='android:id/title' and contains(@text, '"+text+"')]")));
driver.findElement(By.xpath("//android.widget.TextView[@resource-id='android:id/title' and contains(@text, '"+text+"')]")).click();
Thank you
EDIT:
Before of last code, I open notificaction list with:
((AndroidDriver)driver).openNotifications();