testcentricity_web 0.8.7 → 0.8.8
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/textfield.rb +33 -33
- 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: 42ed99dccff2f618eb499debb1cddd8c325d31e6
|
4
|
+
data.tar.gz: 4dbd5db9f6aecdef99969f1a53eb86c614b7916f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb1ca9ad90740fb481c69b3aab09d9a48fe8f34bebc2b7eaa0553d599cf924d9bb0e7b641d607659c019a65cd214c312590169401eddebaf0ec5ad404f6aada9
|
7
|
+
data.tar.gz: b9f0fbfa6aef8af141397216e1e2de40c55fcf51d6fbc8bdea78dc54f7dc90c91641c1a2cbae8f96e2301eef4b5e92ac33b3e1bc853a520a0795dca46f5a4a6a
|
@@ -7,41 +7,41 @@ module TestCentricity
|
|
7
7
|
@type = :textfield
|
8
8
|
@alt_locator = nil
|
9
9
|
end
|
10
|
-
end
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
11
|
+
# Is text field set to read-only?
|
12
|
+
#
|
13
|
+
# @return [Boolean]
|
14
|
+
# @example
|
15
|
+
# comments_field.read_only?
|
16
|
+
#
|
17
|
+
def read_only?
|
18
|
+
obj, _ = find_element
|
19
|
+
object_not_found_exception(obj, nil)
|
20
|
+
!!obj.native.attribute('readonly')
|
21
|
+
end
|
23
22
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
23
|
+
# Return maxlength character count of a text field.
|
24
|
+
#
|
25
|
+
# @return [Integer]
|
26
|
+
# @example
|
27
|
+
# max_num_chars = comments_field.get_max_length
|
28
|
+
#
|
29
|
+
def get_max_length
|
30
|
+
obj, _ = find_element
|
31
|
+
object_not_found_exception(obj, nil)
|
32
|
+
obj.native.attribute('maxlength')
|
33
|
+
end
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
35
|
+
# Return placeholder text of a text field.
|
36
|
+
#
|
37
|
+
# @return [String]
|
38
|
+
# @example
|
39
|
+
# placeholder_message = username_field.get_placeholder
|
40
|
+
#
|
41
|
+
def get_placeholder
|
42
|
+
obj, _ = find_element
|
43
|
+
object_not_found_exception(obj, nil)
|
44
|
+
obj.native.attribute('placeholder')
|
45
|
+
end
|
46
46
|
end
|
47
47
|
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: 0.8.
|
4
|
+
version: 0.8.8
|
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-05-
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|