cfme.web_ui.flash module

Provides functions for the flash area.

var area:A cfme.web_ui.Region object representing the flash region.
class cfme.web_ui.flash.Message(message=None, level=None)[source]

Bases: cfme.utils.pretty.Pretty

A simple class to represent a flash error in CFME.

  • message – The message string.
  • level – The level of the message.
pretty_attrs = ['message', 'level']
cfme.web_ui.flash.assert_message_contain(*args, **kwargs)[source]

Asserts that a message contains a specific string

cfme.web_ui.flash.assert_message_match(*args, **kwargs)[source]

Asserts that a message matches a specific string.

cfme.web_ui.flash.assert_no_errors(*args, **kwargs)[source]

Asserts that there are no current Error messages. If no messages are passed in, they will be retrieved from the UI.

cfme.web_ui.flash.assert_success(*args, **kwargs)[source]

Asserts that there is 1 or more successful messages, no errors. If no messages are passed in, they will be retrieved from the UI.

cfme.web_ui.flash.assert_success_message(*args, **kwargs)[source]

Asserts that there are no errors and a (green) info message matches the given string.


Dismiss the current flash message


Returns a list of all flash messages, (including ones hidden behind the currently showing one, if any). All flash messages will be dismissed.


Return a list of visible flash messages


Checks a given message to see if is an Error.’

Parameters:message – The message object.

Turns an element into a Message object.

Parameters:el – The element containing the flass message.

Returns: A Message object.


If FlashMessageException happens, appends all the present flash messages in the error text


Wrapper that resolves eventual verpick dictionary passed to the function.