lib/YuiRestClient/Widget/Base.pm

NAME

YuiRestClient::Widget::Base - base class for all UI objects

COPYRIGHT

Copyright 2021 SUSE LLC

SPDX-License-Identifier: FSFAP

AUTHORS

QE Yam <qe-yam at suse de>

SYNOPSIS

return $self->action(action => YuiRestClient::Action::YUI_PRESS);
return $self->{rt_eula}->exist();
my $is_enabled = $self->property('enabled');

DESCRIPTION

Overview

This class provides base methods for all UI widget classes

Class and object methods

Class attributes:

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.