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: utils.pretty.Pretty

A simple class to represent a flash error in CFME.

Parameters:
  • 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_message(*args, **kwargs)[source]

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

cfme.web_ui.flash.dismiss()[source]

Dismiss the current flash message

cfme.web_ui.flash.get_all_messages()[source]

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

cfme.web_ui.flash.get_message_level_up(el)[source]
cfme.web_ui.flash.get_message_text_up(el)[source]
cfme.web_ui.flash.get_messages()[source]

Return a list of visible flash messages

cfme.web_ui.flash.is_error(message)[source]

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

Parameters:message – The message object.
cfme.web_ui.flash.message(el)[source]

Turns an element into a Message object.

Parameters:el – The element containing the flass message.

Returns: A Message object.

cfme.web_ui.flash.verify_rails_error(f)[source]
cfme.web_ui.flash.verpick_message(f)[source]

Wrapper that resolves eventual verpick dictionary passed to the function.