testcentricity_web 0.9.9 → 0.9.9.1
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 +4 -4
- data/lib/testcentricity_web/elements/table.rb +13 -5
- 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: 7035a522727c867e935e3ad3c97fe132cd56a000
|
|
4
|
+
data.tar.gz: 23bd98d5eb51e696e9b36e0e970c79e9ef7a4faa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1af634b13b917ccf7de8f965527b63309b88befca92314e6e22100acfbcb357de8da34969d0edb3e8db9ecaf1c7c768cfbd8a42479c8b85c07e6034653c36036
|
|
7
|
+
data.tar.gz: 27e5ed5117459d5535cd69d77eeb8b4602612832c5b5ed3ad2b2d323b8c06f1fd8562a5d5373bbb41643a2a0c85e06f7eae903a2d107f5ebb176898e784275ce
|
|
@@ -247,7 +247,12 @@ module TestCentricity
|
|
|
247
247
|
set_alt_locator("#{saved_locator}/textarea")
|
|
248
248
|
set_alt_locator(saved_locator) unless exists?
|
|
249
249
|
end
|
|
250
|
-
|
|
250
|
+
if exists?
|
|
251
|
+
value = get_value
|
|
252
|
+
else
|
|
253
|
+
puts "Could not find table cell at #{@alt_locator}"
|
|
254
|
+
value = ''
|
|
255
|
+
end
|
|
251
256
|
clear_alt_locator
|
|
252
257
|
value
|
|
253
258
|
end
|
|
@@ -418,16 +423,19 @@ module TestCentricity
|
|
|
418
423
|
row_spec = "#{row_spec}[#{row}]"
|
|
419
424
|
else
|
|
420
425
|
row_spec = "#{@locator}/#{@table_body}/#{@table_section}"
|
|
421
|
-
row_spec = "#{row_spec}[#{row}]/#{@table_row}"
|
|
426
|
+
row_spec = "#{row_spec}[#{row}]/#{@table_row}[1]"
|
|
422
427
|
end
|
|
423
|
-
column_spec = "/#{@table_column}"
|
|
424
|
-
column_spec = "#{column_spec}[#{column}]" if column > 1
|
|
428
|
+
column_spec = "/#{@table_column}[#{column}]"
|
|
425
429
|
set_alt_locator("#{row_spec}#{column_spec}")
|
|
426
430
|
end
|
|
427
431
|
|
|
428
432
|
def find_table_cell(row, column)
|
|
429
433
|
set_table_cell_locator(row, column)
|
|
430
|
-
|
|
434
|
+
if exists?
|
|
435
|
+
click
|
|
436
|
+
else
|
|
437
|
+
puts "Could not find table cell at #{@alt_locator}"
|
|
438
|
+
end
|
|
431
439
|
saved_locator = @alt_locator
|
|
432
440
|
set_alt_locator("#{saved_locator}/input")
|
|
433
441
|
set_alt_locator("#{saved_locator}/textarea") unless exists?
|
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.9
|
|
4
|
+
version: 0.9.9.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-06-
|
|
11
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|