class LibyuiClient::Widgets::Button
Class representing a button in UI. It can be YQWizardButton, YPushButton.
Public Instance Methods
click()
click to toggle source
Sends action to click the button in UI. @return [Button] in case action is successful @example Click button with id 'test'
app.button(id: 'test').click
# File lib/libyui_client/widgets/button.rb, line 11 def click action(action: Actions::PRESS) self end
fkey()
click to toggle source
Returns fkey value for the button. @return [Integer] F (function) key that can be used as shortcut to press the button. @example Get fkey value for YQWizardButton
{ "class": "YQWizardButton", "debug_label": "Cancel", "fkey": 9, "id": "cancel", "label": "&Cancel" }
@example
fkey = app.button(id: 'cancel').fkey
# File lib/libyui_client/widgets/button.rb, line 28 def fkey property(:fkey) end