cfme.web_ui.listaccordion module

A set of functions for dealing with accordions in the UI.

Usage:

Using Accordions is simply a case of either selecting it to return the element,
or using the built in click method. As shown below::

  acc = web_ui.accordion

  acc.click('Diagnostics')
  acc.is_active('Diagnostics')

Note

Inactive links are not available in any way.

Bases: utils.pretty.Pretty

Active link in an accordion section

Parameters:title – The title of the link.
click()[source]

Clicks a link by title.

Parameters:title – The title of the button to check.
Raises:ListAccordionLinkNotFound – when active link is not found.
locate()[source]

Locates an active link.

Returns: An XPATH locator for the element.

pretty_attrs = ['title', 'root']
cfme.web_ui.listaccordion.click(name)[source]

Clicks an accordion and returns it

Parameters:name – The name of the accordion.

Returns all active links in a section specified by name

Parameters:name – Name of the section
cfme.web_ui.listaccordion.is_active(name)[source]

Checks if an accordion is currently open

Parameters:name – The name of the accordion.

Returns: True if the button is depressed, False if not.

cfme.web_ui.listaccordion.locate(name)[source]

Returns a list-accordion by name

Parameters:name – The name of the accordion.

Returns: An xpath locator of the selected accordion.

cfme.web_ui.listaccordion.select(name, link_title)[source]

Clicks an active link in accordion section

Parameters:
  • name – Name of the accordion.
  • link_title – Title of link in expanded accordion section.