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: cfme.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.
is_selected()[source]

Looks whether this option is selected

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

This is only used in pagestats and is likely to be deprecated

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.is_selected(name, link_title_or_text, by_title=True, partial=False)[source]

Checks if the link in accordion section is selected

Parameters:
  • name – Name of the accordion.
  • link_title_or_text – Title or text of link in expanded accordion section.
  • by_title – Whether to search by title or by text.
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_or_text, by_title=True, partial=False)[source]

Clicks an active link in accordion section

Parameters:
  • name – Name of the accordion.
  • link_title_or_text – Title or text of link in expanded accordion section.
  • by_title – Whether to search by title or by text.