cfme.web_ui.accordion 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')
cfme.web_ui.accordion.click(name)[source]

Clicks an accordion and returns it

Parameters:name – The name of the accordion.

Returns: A web element of the clicked accordion.

cfme.web_ui.accordion.is_active(name)[source]

Checks if an accordion is currently open

Note: Only works on traditional accordions.

Parameters:name – The name of the accordion.

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

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

Returns an accordion by name

Parameters:name – The name of the accordion.

Returns: A web element of the selected accordion.

cfme.web_ui.accordion.tree(name, *path)[source]

Get underlying Tree() object. And eventually click path.

If the accordion is not active, will be clicked. Attention! The object is ‘live’ so when it’s obscured, it won’t work!

Usage:

accordion.tree("Something").click_path("level 1", "level 2")
accordion.tree("Something", "level 1", "level 2")  # is the same
Parameters:*path – If specified, it will directly pass these parameters into click_path of Tree. Otherwise it returns the Tree object.