Table of contents

Contents



Official Content

This command is useful to retrieve all messages, notifications, balloons, etc. shown on a webpage.

GetMessagescommand_png

Returns:

A collection of texts containing all messages present on the page.

Examples:

&charsCollection = &driver.GetMessages()

If you want to validate that a certain message is shown you can do it like this:

&driver.Verify(&driver.GetMessages().ToJson().Contains("Message to validate is being shown"))

Availability

This command  is available since GeneXus 17 upgrade 1.


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant