testcentricity_web 0.5.0 → 0.5.1

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: 9226c20698c532474d21fef466125ebef6ecc5bb
4
- data.tar.gz: 679bf6084b8a6c4841adeef2b2d09ddeb3758594
3
+ metadata.gz: 654cf4e092fc037e50bbc4fcbf48a0e1d2f3283a
4
+ data.tar.gz: 3aa95d08802e98a6590a1c3e63f023c936276bba
5
5
  SHA512:
6
- metadata.gz: 687e65a2ab860a763a86df2918723d8bd6e788f34d719a11c6ce1c0a3847e8f58a3602ad0c1edb2dc4a85e5423b3926d71ef9e347a3edca90a9005f89e367691
7
- data.tar.gz: 657868e8f4db8d1dc2e34c7d12896f26e612cea9d640809b82d8cb59923bc817e9dd510176cce90ead958d8b24f68a83ca431a7037987fd8c3ecb59e6e1e2730
6
+ metadata.gz: 2a18e8bf8dc6a4802f1fc6aea915c9eda1a656b329451f0bdfb0188850cd998b47325b6298710dea1cc02c8d7e91fe016d3fef23afeb034405828306e4f02982
7
+ data.tar.gz: 9b8b813f68850e8350fdfdb5ff5b4e3131cb6ad6381436125738045ef50a4ba7d06992ebad43eaa5cf746ff8dbc8ddb0c3b514b7e242c89a27170a132267bbf1
@@ -45,18 +45,9 @@ module TestCentricity
45
45
  column_count = get_column_count
46
46
  raise "Column #{column} exceeds number of columns (#{column_count}) in table #{@locator}" if column > column_count
47
47
  set_table_cell_locator(row, column)
48
- saved_locator = @alt_locator
49
- set_alt_locator("#{@alt_locator}/div/div[@class='ui-icon ui-icon-triangle-1-s tree-minus treeclick']")
50
- if exists?
51
- expanded = true
52
- else
53
- set_alt_locator("#{saved_locator}/div/div[@class='ui-icon ui-icon-triangle-1-e tree-plus treeclick']")
54
- if exists?
55
- expanded = false
56
- else
57
- raise "Row #{row}/Column #{column} of table #{@locator} does not contain a disclosure triangle"
58
- end
59
- end
48
+ set_alt_locator("#{@alt_locator}/div/div[contains(@class, 'tree-plus treeclick')]")
49
+ expanded = true
50
+ expanded = false if exists?
60
51
  clear_alt_locator
61
52
  expanded
62
53
  end
@@ -64,7 +55,7 @@ module TestCentricity
64
55
  def expand_table_row(row, column)
65
56
  unless is_table_row_expanded?(row, column)
66
57
  set_table_cell_locator(row, column)
67
- set_alt_locator("#{@alt_locator}/div/div[@class='ui-icon ui-icon-triangle-1-e tree-plus treeclick']")
58
+ set_alt_locator("#{@alt_locator}/div/div[contains(@class, 'tree-plus treeclick')]")
68
59
  click if exists?
69
60
  clear_alt_locator
70
61
  end
@@ -73,12 +64,21 @@ module TestCentricity
73
64
  def collapse_table_row(row, column)
74
65
  if is_table_row_expanded?(row, column)
75
66
  set_table_cell_locator(row, column)
76
- set_alt_locator("#{@alt_locator}/div/div[@class='ui-icon ui-icon-triangle-1-s tree-minus treeclick']")
67
+ set_alt_locator("#{@alt_locator}/div/div[contains(@class, 'tree-minus treeclick')]")
77
68
  click if exists?
78
69
  clear_alt_locator
79
70
  end
80
71
  end
81
72
 
73
+ def expand_all_table_rows(column)
74
+ row_count = get_row_count
75
+ column_count = get_column_count
76
+ raise "Column #{column} exceeds number of columns (#{column_count}) in table #{@locator}" if column > column_count
77
+ (1..row_count).each do |row|
78
+ expand_table_row(row, column)
79
+ end
80
+ end
81
+
82
82
  def get_siebel_object_type
83
83
  obj, _ = find_element
84
84
  object_not_found_exception(obj, 'Siebel object')
@@ -253,7 +253,7 @@ module TestCentricity
253
253
  def get_selected_option
254
254
  obj, _ = find_element
255
255
  object_not_found_exception(obj, nil)
256
- obj.find('option[selected]').text
256
+ obj.first('option[selected]').text
257
257
  end
258
258
 
259
259
  def get_row_count
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
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.5.0
4
+ version: 0.5.1
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-03-07 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler