YuiRestClient::Widget::Base - base class for all UI objects
Copyright 2021 SUSE LLC
SPDX-License-Identifier: FSFAP
QE Yam <qe-yam at suse de>
return $self->action(action => YuiRestClient::Action::YUI_PRESS);
return $self->{rt_eula}->exist();
my $is_enabled = $self->property('enabled');
This class provides base methods for all UI widget classes
Class attributes:
{widget_controller} - reference to WidgetController class
{filter} - filter expression for identifying widgets
Class methods:
new($args) - constructor for UI objects
Arguments are widget_controller and filter.
action(%args) - perform action on UI widget
Arguments are a hash like {action => YuiRestClient::Action::YUI_PRESS}
.
exist() - check if UI widget exists
Tries to find widget, returns 0 if widget exists.
propery($property) - return JSON property value
If property does not exist the method will return undef
.
find_widgets() - retrieves JSON hash for the widget
The widget is specified by the filter
parameter on creation of the object.