class LibyuiClient::Widgets::Richtext
Class representing a richtext in the UI. It can be YRichText.
Public Instance Methods
click_link(value)
click to toggle source
Sends action to click a link inside a richtext control in the UI. @param value [String] href @return [Richtext] in case action is successful @example Click link with value 'test'
items.click_link('test')
# File lib/libyui_client/widgets/richtext.rb, line 12 def click_link(value) action(action: Actions::PRESS, value: value) self end
text()
click to toggle source
Returns text value for the richtext. @return [String] value @example Get text value for YRichText
{ "class": "YRichText", "enabled": false, "hstretch": true, "id": "test", "text": "<small>Select something here</small>", "vstretch": true, "vweight": 25 }
@example
text = app.richtext(id: 'test').text # "<small>Select something here</small>"
# File lib/libyui_client/widgets/richtext.rb, line 31 def text property(:text) end