cfme.utils.appliance.implementations.ui module

class cfme.utils.appliance.implementations.ui.CFMENavigateStep(obj, navigate_obj)[source]

Bases: navmazing.NavigateStep

VIEW = None
am_i_here()[source]
appliance
check_for_badness(fn, _tries, nav_args, *args, **kwargs)[source]
construct_message(here, resetter, view, duration, waited)[source]
create_view(*args, **kwargs)[source]
go(_tries=0, *args, **kwargs)[source]
log_message(msg, level='debug')[source]
post_navigate(*args, **kwargs)[source]
pre_navigate(*args, **kwargs)[source]
resetter(*args, **kwargs)[source]
view
class cfme.utils.appliance.implementations.ui.ErrorView(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

body

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

error_text

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

get_rails_error()[source]

Gets the displayed error messages

title

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.utils.appliance.implementations.ui.MiqBrowser(selenium, endpoint, extra_objects=None)[source]

Bases: widgetastic.browser.Browser

appliance
create_view(*args, **kwargs)[source]
product_version
class cfme.utils.appliance.implementations.ui.MiqBrowserPlugin(browser)[source]

Bases: widgetastic.browser.DefaultPlugin

DEFAULT_WAIT = 0.8
ENSURE_PAGE_SAFE = 'function isHidden(el){if(el===null)return true;return el.offsetParent===null;}\nfunction isDataLoading(){try{return window.ManageIQ.gtl.loading;}catch(err){return false;};}\ntry{angular.element(\'error-modal\').hide();}catch(err){}\ntry{return!(ManageIQ.qe.anythingInFlight()||isDataLoading());}catch(err){return(((typeof $==="undefined")?true:$.active<1)&&(!((!isHidden(document.getElementById("spinner_div")))&&isHidden(document.getElementById("lightbox_div"))))&&document.readyState=="complete"&&((typeof checkMiqQE==="undefined")?true:checkMiqQE(\'autofocus\')<1)&&((typeof checkMiqQE==="undefined")?true:checkMiqQE(\'debounce\')<1)&&((typeof checkAllMiqQE==="undefined")?true:checkAllMiqQE()<1)&&!isDataLoading());}'
OBSERVED_FIELD_MARKERS = ('data-miq_observe', 'data-miq_observe_date', 'data-miq_observe_checkbox')
after_keyboard_input(element, keyboard_input)[source]
before_keyboard_input(element, keyboard_input)[source]
ensure_page_safe(timeout='20s')[source]
class cfme.utils.appliance.implementations.ui.ViaUI(owner)[source]

Bases: cfme.utils.appliance.implementations.Implementation

UI implementation using the normal ux

widgetastic

This gives us a widgetastic browser.

cfme.utils.appliance.implementations.ui.can_skip_badness_test(fn)[source]

Decorator for setting a noop