yui_rest_client 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca27d870afe905331021d8f5e4f5404fddbde8cbd6f1c30f99014a9e67c65e26
|
4
|
+
data.tar.gz: 4b80b15184d9ab7073a23bdf126366790571aa976892c79183b559b053b2fe1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f49a5754c51af9e4e97013872ed4b0b9db9b3b88cc436e54150e0247ef628dad4f22f5f2cde32a463d3e11427e11ba0ba209248b1e0adeefb516fde4d50d2a3e
|
7
|
+
data.tar.gz: 7f1aadb357cbce7897199832153388b5e421abf4ee651032ad75b18d21fc4042d2ed9eb960b6668b2a4a47e0cb7071f398c9b8be4b08a282043cb6bf9aaa37f4
|
data/README.md
CHANGED
@@ -92,9 +92,9 @@ app.label(id: 'test_id').heading? # gets if label has bold font respresentation
|
|
92
92
|
app.label(id: 'test_id').text # gets text from label with id 'test_id'
|
93
93
|
```
|
94
94
|
|
95
|
-
###
|
95
|
+
### MenuCollection
|
96
96
|
```ruby
|
97
|
-
app.
|
97
|
+
app.menucollection(id: 'test_id').click('item1') # clicks on 'item1' of menucollection with id 'test_id'
|
98
98
|
```
|
99
99
|
|
100
100
|
### Numberbox
|
data/lib/yui_rest_client/app.rb
CHANGED
@@ -73,14 +73,14 @@ module YuiRestClient
|
|
73
73
|
Widgets::Label.new(@widget_controller, FilterExtractor.new(filter))
|
74
74
|
end
|
75
75
|
|
76
|
-
# Initializes new instance of
|
76
|
+
# Initializes new instance of Menucollection with the filter provided.
|
77
77
|
# Does not make request to libyui-rest-api.
|
78
78
|
# @param filter [Hash] filter to find a widget
|
79
|
-
# @return [Widgets::
|
79
|
+
# @return [Widgets::Menucollection] new instance of Menucollection
|
80
80
|
# @example
|
81
|
-
# app.
|
82
|
-
def
|
83
|
-
Widgets::
|
81
|
+
# app.menucollection(id: 'id', label: 'label', class: 'YMenuButton')
|
82
|
+
def menucollection(filter)
|
83
|
+
Widgets::Menucollection.new(@widget_controller, FilterExtractor.new(filter))
|
84
84
|
end
|
85
85
|
|
86
86
|
# Initializes new instance of Multilinebox with the filter provided.
|
@@ -10,7 +10,7 @@ module YuiRestClient
|
|
10
10
|
require 'yui_rest_client/widgets/combobox'
|
11
11
|
require 'yui_rest_client/widgets/datefield'
|
12
12
|
require 'yui_rest_client/widgets/label'
|
13
|
-
require 'yui_rest_client/widgets/
|
13
|
+
require 'yui_rest_client/widgets/menucollection'
|
14
14
|
require 'yui_rest_client/widgets/multilinebox'
|
15
15
|
require 'yui_rest_client/widgets/numberbox'
|
16
16
|
require 'yui_rest_client/widgets/progressbar'
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module YuiRestClient
|
4
4
|
module Widgets
|
5
|
-
# Class representing a
|
6
|
-
class
|
7
|
-
# Sends action to click on one of
|
8
|
-
# @param item [String] value to select from
|
9
|
-
# @example Click button with label 'test_button' for
|
5
|
+
# Class representing a menucollection in UI. It can be YMenuButton, YMenuBar.
|
6
|
+
class Menucollection < Widgets::Base
|
7
|
+
# Sends action to click on one item of a menu (menu button or menu bar) in UI.
|
8
|
+
# @param item [String] value to select from menu.
|
9
|
+
# @example Click button with label 'test_button' for menucollection with id 'test_id'.
|
10
10
|
# @example
|
11
|
-
# app.
|
11
|
+
# app.menucollection(id: 'test_id').click('test_item')
|
12
12
|
def click(item)
|
13
13
|
action(action: Actions::PRESS, value: item)
|
14
14
|
end
|
@@ -36,7 +36,7 @@ module YuiRestClient
|
|
36
36
|
# "label": "button group"
|
37
37
|
# }
|
38
38
|
# @example
|
39
|
-
# app.
|
39
|
+
# app.menucollection(id: 'test').items
|
40
40
|
# # button1
|
41
41
|
# # button2
|
42
42
|
# # button3
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yui_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joaquin Rivera
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2020-10-
|
15
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|
@@ -181,7 +181,7 @@ files:
|
|
181
181
|
- lib/yui_rest_client/widgets/combobox.rb
|
182
182
|
- lib/yui_rest_client/widgets/datefield.rb
|
183
183
|
- lib/yui_rest_client/widgets/label.rb
|
184
|
-
- lib/yui_rest_client/widgets/
|
184
|
+
- lib/yui_rest_client/widgets/menucollection.rb
|
185
185
|
- lib/yui_rest_client/widgets/multilinebox.rb
|
186
186
|
- lib/yui_rest_client/widgets/numberbox.rb
|
187
187
|
- lib/yui_rest_client/widgets/progressbar.rb
|