testcentricity_web 3.0.11 → 3.0.12

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
  SHA1:
3
- metadata.gz: 78fa4be1eae12b37a5e50cdad2d62a549e7cde9f
4
- data.tar.gz: bd21610b06681a8d87ab09bc9e85df4d58e75ef5
3
+ metadata.gz: c370a03f38d5340d4099d4e5c5cb583920b7bb12
4
+ data.tar.gz: bfda10485618a0b3578d5949a82c0756afe0966b
5
5
  SHA512:
6
- metadata.gz: 87168ed26a747b735c3c31c0786f00f783eb480b868fe92dd4db27029dcc9a0c50ae28cc8696914a28a64923213748838d59b245fe09b229c0d5b85825eea10c
7
- data.tar.gz: 48ba110d952f1e153374d9a2369e7bf43996cf95276c16dead90394c1ad8b032508f37941af08649087344da0a086d83ac81beeda334b2bf8a527efd8985b302
6
+ metadata.gz: ca80c8f33eae348b8541fd31b115c93f5c67d1bebe378494677ef0cd7071abad970c11bb6feeb3346c1d75d6219d4ea35c8ca8814703a10fdbcbf5211806f884
7
+ data.tar.gz: 44169fa279bc3f083ec064c81796452b1f9f38d39b9ae2a39ae6b53c5efbb16e4912cd5d8af723b7c0a6ec5b21e3de2a47e2935f0a513d003156c380fd806432
@@ -1,6 +1,11 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [3.0.12] - 2018-08-10
5
+ ### Added
6
+ * `PageSection.hover` method.
7
+ * `List.hover_item` method.
8
+
4
9
  ## [3.0.11] - 2018-08-05
5
10
  ### Added
6
11
  * `UIElement.count` method.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity_web (3.0.11)
4
+ testcentricity_web (3.0.12)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 3.1, < 4)
@@ -20,15 +20,15 @@ GEM
20
20
  specs:
21
21
  addressable (2.5.2)
22
22
  public_suffix (>= 2.0.2, < 4.0)
23
- appium_lib (9.14.3)
24
- appium_lib_core (~> 1.8.0)
23
+ appium_lib (9.15.0)
24
+ appium_lib_core (~> 1.9.0)
25
25
  nokogiri (~> 1.8, >= 1.8.1)
26
26
  tomlrb (~> 1.1)
27
- appium_lib_core (1.8.4)
27
+ appium_lib_core (1.9.0)
28
28
  faye-websocket (~> 0.10.0)
29
- selenium-webdriver (~> 3.5, < 3.14)
29
+ selenium-webdriver (~> 3.14)
30
30
  browserstack-local (1.3.0)
31
- capybara (3.5.0)
31
+ capybara (3.5.1)
32
32
  addressable
33
33
  mini_mime (>= 0.1.3)
34
34
  nokogiri (~> 1.8)
@@ -46,7 +46,7 @@ GEM
46
46
  eventmachine (>= 0.12.0)
47
47
  websocket-driver (>= 0.5.1)
48
48
  ffi (1.9.25)
49
- i18n (1.0.1)
49
+ i18n (1.1.0)
50
50
  concurrent-ruby (~> 1.0)
51
51
  mini_mime (1.0.0)
52
52
  mini_portile2 (2.3.0)
@@ -62,7 +62,7 @@ GEM
62
62
  redcarpet (3.3.4)
63
63
  ruby-ole (1.2.12.1)
64
64
  rubyzip (1.2.1)
65
- selenium-webdriver (3.13.1)
65
+ selenium-webdriver (3.14.0)
66
66
  childprocess (~> 0.5)
67
67
  rubyzip (~> 1.2)
68
68
  spreadsheet (1.1.7)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.0.11'
2
+ VERSION = '3.0.12'
3
3
  end
@@ -590,6 +590,10 @@ module TestCentricity
590
590
  actual = ui_object.get_all_items_count
591
591
  when :column_headers
592
592
  actual = ui_object.get_header_columns
593
+ when :count, :count_visible
594
+ actual = ui_object.count(visible = true)
595
+ when :count_all
596
+ actual = ui_object.count(visible = :all)
593
597
  when :siebel_options
594
598
  actual = ui_object.get_siebel_options
595
599
  else
@@ -717,6 +717,17 @@ module TestCentricity
717
717
  section.send_keys(*keys)
718
718
  end
719
719
 
720
+ # Hover the cursor over a Section object
721
+ #
722
+ # @example
723
+ # bar_chart_section.hover
724
+ #
725
+ def hover
726
+ section, = find_section
727
+ section_not_found_exception(section)
728
+ section.hover
729
+ end
730
+
720
731
  def verify_ui_states(ui_states, fail_message = nil)
721
732
  ui_states.each do |ui_object, object_states|
722
733
  object_states.each do |property, state|
@@ -779,6 +790,10 @@ module TestCentricity
779
790
  actual = ui_object.get_all_items_count
780
791
  when :column_headers
781
792
  actual = ui_object.get_header_columns
793
+ when :count, :count_visible
794
+ actual = ui_object.count(visible = true)
795
+ when :count_all
796
+ actual = ui_object.count(visible = :all)
782
797
  when :siebel_options
783
798
  actual = ui_object.get_siebel_options
784
799
  else
@@ -26,11 +26,19 @@ module TestCentricity
26
26
  end
27
27
  end
28
28
 
29
+ # Select the specified item in a list object. Accepts a String or Integer.
30
+ #
31
+ # @param item [String, Integer] text or index of item to select
32
+ #
33
+ # @example
34
+ # province_list.choose_item(2)
35
+ # province_list.choose_item('Manitoba')
36
+ #
29
37
  def choose_item(item)
30
38
  obj, = find_element
31
39
  object_not_found_exception(obj, nil)
32
40
  if item.is_a?(Integer)
33
- obj.find(:css, "#{@list_item}:nth-of-type(#{item})").click
41
+ obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).click
34
42
  elsif item.is_a?(String)
35
43
  items = obj.all(@list_item).collect(&:text)
36
44
  sleep(2) unless items.include?(item)
@@ -38,6 +46,25 @@ module TestCentricity
38
46
  end
39
47
  end
40
48
 
49
+ # Hover over the specified item in a list object. Accepts a String or Integer.
50
+ #
51
+ # @param item [String, Integer] text or index of item to hover over
52
+ # @example
53
+ # province_list.hover_item(2)
54
+ # province_list.hover_item('Manitoba')
55
+ #
56
+ def hover_item(item)
57
+ obj, = find_element
58
+ object_not_found_exception(obj, nil)
59
+ if item.is_a?(Integer)
60
+ obj.find(:css, "#{@list_item}:nth-of-type(#{item})", visible: true, minimum: 0).hover
61
+ elsif item.is_a?(String)
62
+ items = obj.all(@list_item).collect(&:text)
63
+ sleep(2) unless items.include?(item)
64
+ obj.first(:css, @list_item, text: item).hover
65
+ end
66
+ end
67
+
41
68
  # Return array of strings of all items in a list object.
42
69
  #
43
70
  # @return [Array]
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: 3.0.11
4
+ version: 3.0.12
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: 2018-08-06 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler