widgetastic_patternfly4.breadcrumb module

class widgetastic_patternfly4.breadcrumb.BaseBreadCrumb

Bases: object

Represents the Patternfly BreadCrumb.

https://www.patternfly.org/v4/documentation/react/components/breadcrumb

ELEMENTS = './/li'
active_location

Returns the last location in the breadcrumb, or None if there no breadcrumbs.

click_location(name, partial=False, handle_alert=False)

Clicks a location present in the breadcrumbs by string name.

Parameters:
  • name – location name
  • partial (bool) – Whether to use partial match
  • handle_alert – handle the browser alert and ensure page safe
locations

Returns a list of strings of the current location according to the breadcrumbs.

read()

Return the active location of the breadcrumb.

class widgetastic_patternfly4.breadcrumb.BreadCrumb(parent, logger=None, **kwargs)

Bases: widgetastic_patternfly4.breadcrumb.BaseBreadCrumb, widgetastic.widget.base.Widget

ROOT = './/nav[contains(@class, "pf-c-breadcrumb")]/ol'