testcentricity_web 2.0.16 → 2.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/testcentricity_web/elements/cell_button.rb +1 -1
- data/lib/testcentricity_web/elements/cell_element.rb +1 -1
- data/lib/testcentricity_web/elements/list_button.rb +1 -1
- data/lib/testcentricity_web/elements/list_element.rb +1 -1
- data/lib/testcentricity_web/elements/table.rb +14 -14
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f6f936854633acb042bdf485a5074fe7e996109
|
4
|
+
data.tar.gz: 3a791f21c8e520338d37247623ee7862fd938468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b39e20000a3b3a1c4f07c5cc537b7b841cb4019e9d74c5506af4b97c8f2c2480b81b6ff6c3d102d5c7083c2d94b161b4959c4d05c174189abcf15c9adad66cd8
|
7
|
+
data.tar.gz: 7697a7cabe28299e0ac087d9c0d41bce7452c9a9e0ad9a295643c6f8a278317facf4042763509ad86048c6874f80a4d0a44693d6eacb8528c73f97b41e53510e
|
@@ -4,7 +4,7 @@ module TestCentricity
|
|
4
4
|
attr_accessor :column
|
5
5
|
attr_accessor :element_locator
|
6
6
|
|
7
|
-
def initialize(name, parent, locator, context, table, column)
|
7
|
+
def initialize(name, parent, locator, context, table, column, proxy = nil)
|
8
8
|
@name = name
|
9
9
|
@parent = parent
|
10
10
|
@context = context
|
@@ -154,15 +154,15 @@ module TestCentricity
|
|
154
154
|
raise "Column #{column} exceeds number of columns (#{column_count}) in table #{object_ref_message}" if column > column_count
|
155
155
|
set_table_cell_locator(row, column)
|
156
156
|
saved_locator = @alt_locator
|
157
|
-
set_alt_locator("#{@alt_locator}
|
158
|
-
set_alt_locator("#{saved_locator}
|
157
|
+
set_alt_locator("#{@alt_locator}//a")
|
158
|
+
set_alt_locator("#{saved_locator}//span/a") unless exists?
|
159
159
|
# if link not present, check for text entry fields and try to dismiss by tabbing out
|
160
160
|
unless exists?
|
161
|
-
set_alt_locator("#{saved_locator}
|
162
|
-
set_alt_locator("#{saved_locator}
|
161
|
+
set_alt_locator("#{saved_locator}//input")
|
162
|
+
set_alt_locator("#{saved_locator}//textarea") unless exists?
|
163
163
|
send_keys(:tab) if exists?
|
164
|
-
set_alt_locator("#{saved_locator}
|
165
|
-
set_alt_locator("#{saved_locator}
|
164
|
+
set_alt_locator("#{saved_locator}//a")
|
165
|
+
set_alt_locator("#{saved_locator}//span/a") unless exists?
|
166
166
|
send_keys(:tab) unless exists?
|
167
167
|
end
|
168
168
|
wait_until_exists(1)
|
@@ -179,9 +179,9 @@ module TestCentricity
|
|
179
179
|
value = ''
|
180
180
|
set_table_cell_locator(row, column)
|
181
181
|
saved_locator = @alt_locator
|
182
|
-
set_alt_locator("#{saved_locator}
|
182
|
+
set_alt_locator("#{saved_locator}//input")
|
183
183
|
unless exists?
|
184
|
-
set_alt_locator("#{saved_locator}
|
184
|
+
set_alt_locator("#{saved_locator}//textarea")
|
185
185
|
set_alt_locator(saved_locator) unless exists?
|
186
186
|
end
|
187
187
|
value = get_value if exists?
|
@@ -211,9 +211,9 @@ module TestCentricity
|
|
211
211
|
value = ''
|
212
212
|
set_table_cell_locator(row, column)
|
213
213
|
saved_locator = @alt_locator
|
214
|
-
set_alt_locator("#{saved_locator}
|
214
|
+
set_alt_locator("#{saved_locator}//input")
|
215
215
|
unless exists?
|
216
|
-
set_alt_locator("#{saved_locator}
|
216
|
+
set_alt_locator("#{saved_locator}//textarea")
|
217
217
|
set_alt_locator(saved_locator) unless exists?
|
218
218
|
end
|
219
219
|
value = get_value if exists?
|
@@ -238,9 +238,9 @@ module TestCentricity
|
|
238
238
|
raise "Column #{column} exceeds number of columns (#{column_count}) in table #{object_ref_message}" if column > column_count
|
239
239
|
set_table_cell_locator(row, column)
|
240
240
|
saved_locator = @alt_locator
|
241
|
-
set_alt_locator("#{saved_locator}
|
241
|
+
set_alt_locator("#{saved_locator}//input")
|
242
242
|
unless exists?
|
243
|
-
set_alt_locator("#{saved_locator}
|
243
|
+
set_alt_locator("#{saved_locator}//textarea")
|
244
244
|
set_alt_locator(saved_locator) unless exists?
|
245
245
|
end
|
246
246
|
if exists?
|
@@ -466,8 +466,8 @@ module TestCentricity
|
|
466
466
|
puts "Could not find table cell at #{@alt_locator}"
|
467
467
|
end
|
468
468
|
saved_locator = @alt_locator
|
469
|
-
set_alt_locator("#{saved_locator}
|
470
|
-
set_alt_locator("#{saved_locator}
|
469
|
+
set_alt_locator("#{saved_locator}//input")
|
470
|
+
set_alt_locator("#{saved_locator}//textarea") unless exists?
|
471
471
|
end
|
472
472
|
end
|
473
473
|
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: 2.0.
|
4
|
+
version: 2.0.17
|
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: 2017-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|