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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 654cf4e092fc037e50bbc4fcbf48a0e1d2f3283a
|
4
|
+
data.tar.gz: 3aa95d08802e98a6590a1c3e63f023c936276bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
49
|
-
|
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
|
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
|
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')
|
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.
|
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-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|