testcentricity_web 2.0.8 → 2.0.9
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_element.rb +10 -8
- 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: 070f9e7955a822a4d36975d7d864606e4b4cefe4
|
4
|
+
data.tar.gz: d3405544d9ae16540af9d5e9fda08b491814f33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ef98019668e8d1f9fb216a411c8bf653377766cceb3ded9d688375e93aa9f62aaaf18d239e21dad5a124d34a354c4d5f8b7275505a831697d6c126586c1887a
|
7
|
+
data.tar.gz: de11d0d0ec92903e27990ed1d156e750df3ec738325eda17ccec157550d0f3f0b78e2c2fa062ad2b16e05f3923584944d1da991db003d10fba0c7123d55d8d53
|
@@ -2,20 +2,22 @@ module TestCentricity
|
|
2
2
|
class CellElement < UIElement
|
3
3
|
attr_accessor :table
|
4
4
|
attr_accessor :column
|
5
|
+
attr_accessor :element_locator
|
5
6
|
|
6
7
|
def initialize(name, parent, locator, context, table, column)
|
7
|
-
@name
|
8
|
-
@parent
|
9
|
-
@context
|
10
|
-
@alt_locator
|
11
|
-
@table
|
12
|
-
@column
|
13
|
-
@
|
8
|
+
@name = name
|
9
|
+
@parent = parent
|
10
|
+
@context = context
|
11
|
+
@alt_locator = nil
|
12
|
+
@table = table
|
13
|
+
@column = column
|
14
|
+
@element_locator = locator
|
15
|
+
@locator = "#{@table.get_table_cell_locator('ROW_SPEC', @column)}/#{@element_locator}"
|
14
16
|
end
|
15
17
|
|
16
18
|
def set_column(column)
|
17
19
|
@column = column
|
18
|
-
@locator = "#{@table.get_table_cell_locator('ROW_SPEC', column)}/#{
|
20
|
+
@locator = "#{@table.get_table_cell_locator('ROW_SPEC', @column)}/#{@element_locator}"
|
19
21
|
end
|
20
22
|
|
21
23
|
def exists?(row)
|