Hi,
I am trying to get the text from alert message and compare with expected message text, but the element.gettext() is returning ‘null’. How to get the actual message displayed inside the message box.
SeeTestIOSElement alertBody=driver.findElementById(“historyPopUpBody”);
String alertBodyText = alertBody.getText();
String acutalAlertMessage = “Functionality yet to be implemented”;
if (alertBodyText== acutalAlertMessage) {
System.out.print(“Message is correct”);
}
else
{System.out.print(“Message is not correct”);
}