testcentricity_web 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78784c531cb446f5986d569b91b84bdb6002ed19
4
- data.tar.gz: 42aa00f2944127038d56240d3555eb9b667b7a4f
3
+ metadata.gz: 985c05ea3da0c7dcd2841bcdfac6c9b9ffd6dc19
4
+ data.tar.gz: d1f74453daf1c43440524ba98ab11d5e9f320861
5
5
  SHA512:
6
- metadata.gz: 78d409b2e5595588f2c1749373c757388887762ffb8c994cf8267e5a0a2408384c2f5d4bd5761a640a831cc641ad8293b9e66d4f39730b4449eff3bafe03fd05
7
- data.tar.gz: 275d81ea900ca24848da1adf48cb6c052ee8486b8cdfe8e9ddbd2094b1f6d70efdb1ac086c1a5f26ec238a4eb00c7ef3df19106de33502386323204ffb9834ec
6
+ metadata.gz: 9b66fcb9aec04320aecb7a1cc4ab5e468e1d81b32a905b86e272354aecb5ceb7620c07669cc21faa690e9e4435e212c498af6992b32ff6630bf5bf7b0d376bd8
7
+ data.tar.gz: 9b39d91ca850db0941dec3b2dd6050c77eda03194d36d07fffac3f082c0b795ee7b9f5f9fc369378c028a4ae05d3c791aa14988456f53ed50338fbb4318bda50
@@ -123,6 +123,18 @@ module TestCentricity
123
123
  obj.native.send_keys(:escape)
124
124
  end
125
125
 
126
+ # Is Siebel JComboBox set to read-only?
127
+ #
128
+ # @return [Boolean]
129
+ # @example
130
+ # country_select.read_only?
131
+ #
132
+ def read_only?
133
+ obj, _ = find_element
134
+ object_not_found_exception(obj, nil)
135
+ !!obj.native.attribute('readonly')
136
+ end
137
+
126
138
  private
127
139
 
128
140
  def select_item(obj, option)
@@ -29,7 +29,8 @@ module TestCentricity
29
29
  def get_max_length
30
30
  obj, _ = find_element
31
31
  object_not_found_exception(obj, nil)
32
- obj.native.attribute('maxlength')
32
+ max_length = obj.native.attribute('maxlength')
33
+ max_length.to_i unless max_length.blank?
33
34
  end
34
35
 
35
36
  # Return placeholder text of a text field.
@@ -266,6 +266,10 @@ module TestCentricity
266
266
  actual = ui_object.get_value
267
267
  when :maxlength
268
268
  actual = ui_object.get_max_length
269
+ when :rowcount
270
+ actual = ui_object.get_row_count
271
+ when :columncount
272
+ actual = ui_object.get_column_count
269
273
  when :placeholder
270
274
  actual = ui_object.get_placeholder
271
275
  when :options
@@ -282,6 +282,10 @@ module TestCentricity
282
282
  actual = ui_object.get_value
283
283
  when :maxlength
284
284
  actual = ui_object.get_max_length
285
+ when :rowcount
286
+ actual = ui_object.get_row_count
287
+ when :columncount
288
+ actual = ui_object.get_column_count
285
289
  when :placeholder
286
290
  actual = ui_object.get_placeholder
287
291
  when :options
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler