get_last_messagebox_text
get_last_messagebox_text(); - get the text of the browser's last dialog message
After testing, the function returns the result of its work to the script :
message text – the text of the browser's last dialog message
"" – an empty string (there were no browser messages during operation)