testcentricity_web 0.7.6 → 0.7.7
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 +10 -7
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd9cf8a1aa80abfcac896b14099e1a5dfd50fc9a
|
4
|
+
data.tar.gz: 40ef5a530ffe4bdfa7b685dba070ff148c03c668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99b815226510736a9d1c347df0e8a14168fd3e30d778b1497b71ec98dceecad396ddfde9b67b88c32aee1c23b269a65a6038aa70f8eff319380ba1c639bf4688
|
7
|
+
data.tar.gz: 113e01a7682fa043fa59428c1be6a6629b5922e92d899e81f4b35b0b24b54b0b8b952a2672ebc6236f2df27fc162548cd119decf1bc2ab5fe4511a7e7f6cdd02
|
@@ -180,13 +180,8 @@ module TestCentricity
|
|
180
180
|
def set_table_cell(row, column, value)
|
181
181
|
row_count = get_row_count
|
182
182
|
raise "Row #{row} exceeds number of rows (#{row_count}) in table #{@locator}" if row > row_count
|
183
|
-
|
184
|
-
|
185
|
-
set_table_cell_locator(row, column)
|
186
|
-
click if exists?
|
187
|
-
saved_locator = @alt_locator
|
188
|
-
set_alt_locator("#{saved_locator}/input")
|
189
|
-
set_alt_locator("#{saved_locator}/textarea") unless exists?
|
183
|
+
find_table_cell(row, column)
|
184
|
+
find_table_cell(row, column) unless exists?
|
190
185
|
set(value)
|
191
186
|
clear_alt_locator
|
192
187
|
end
|
@@ -334,5 +329,13 @@ module TestCentricity
|
|
334
329
|
column_spec = "/td[#{column}]"
|
335
330
|
set_alt_locator("#{row_spec}#{column_spec}")
|
336
331
|
end
|
332
|
+
|
333
|
+
def find_table_cell(row, column)
|
334
|
+
set_table_cell_locator(row, column)
|
335
|
+
click if exists?
|
336
|
+
saved_locator = @alt_locator
|
337
|
+
set_alt_locator("#{saved_locator}/input")
|
338
|
+
set_alt_locator("#{saved_locator}/textarea") unless exists?
|
339
|
+
end
|
337
340
|
end
|
338
341
|
end
|