cello 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75be8b6ec1bd766a60cde884e30bad66fa448ddd
|
4
|
+
data.tar.gz: 81ee6fa326fe7a30aa8f6131d39a9c422ef538ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ef9627ade0b1dd73e158ff7af4841cf376e970eec3cc02f4405b6a39a135910dc78519f87992322f3e8864760fd076d6fff83c3ec230dc46d5481b055756bd
|
7
|
+
data.tar.gz: a2cb87a7f8f8db0b8cb33492b1352ddec73110869bc9b01d7c4920093c9d1a8c361c48e447fd3597e94c79d95cbb7444a01c76da99b8b816c681dd56100a60e1
|
@@ -20,60 +20,60 @@ module Cello
|
|
20
20
|
|
21
21
|
|
22
22
|
def define_extras(name, type)
|
23
|
-
include LogHelper
|
24
|
-
|
23
|
+
#include LogHelper
|
24
|
+
|
25
25
|
define_method "#{name}_exit_wait?" do
|
26
|
-
|
26
|
+
send(name).visible?
|
27
27
|
end
|
28
28
|
|
29
29
|
define_method "#{name}_is_enable?" do
|
30
|
-
logger(name, __method__, type) {
|
31
|
-
|
32
|
-
}
|
30
|
+
#logger(name, __method__, type) {
|
31
|
+
send(name).enabled?
|
32
|
+
#}
|
33
33
|
end
|
34
34
|
define_method "#{name}_is_real?" do
|
35
|
-
logger(name, __method__, type, "Foo") {
|
36
|
-
|
37
|
-
}
|
35
|
+
#logger(name, __method__, type, "Foo") {
|
36
|
+
send(name).exists?
|
37
|
+
#}
|
38
38
|
end
|
39
39
|
define_method "#{name}_click" do
|
40
|
-
logger(name, __method__, type) {
|
41
|
-
|
42
|
-
}
|
40
|
+
#logger(name, __method__, type) {
|
41
|
+
send(name).click
|
42
|
+
#}
|
43
43
|
end
|
44
44
|
define_method "#{name}_is_visible?" do
|
45
|
-
logger(name, __method__, type) {
|
46
|
-
|
47
|
-
}
|
45
|
+
#logger(name, __method__, type) {
|
46
|
+
send(name).visible?
|
47
|
+
#}
|
48
48
|
end
|
49
49
|
define_method "#{name}_right_click" do
|
50
|
-
logger(name, __method__, type) {
|
51
|
-
|
52
|
-
}
|
50
|
+
#logger(name, __method__, type) {
|
51
|
+
send(name).right_click
|
52
|
+
#}
|
53
53
|
end
|
54
54
|
|
55
55
|
define_method "#{name}_get" do |att|
|
56
|
-
logger(name, __method__, type) {
|
57
|
-
|
58
|
-
}
|
56
|
+
#logger(name, __method__, type) {
|
57
|
+
send(name).attribute_value(att)
|
58
|
+
#}
|
59
59
|
end
|
60
60
|
|
61
61
|
method_name = "define_extras_for_#{type}"
|
62
62
|
send(method_name, name) if respond_to? method_name
|
63
63
|
end
|
64
|
-
|
65
64
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
|
66
|
+
include CheckboxHelper
|
67
|
+
include TextfieldHelper
|
68
|
+
include TextareaHelper
|
69
|
+
include SelectHelper
|
70
|
+
include DivHelper
|
71
|
+
include RadioHelper
|
72
|
+
include LinkHelper
|
73
|
+
include ButtonHelper
|
74
|
+
include SpanHelper
|
75
|
+
include HiddenHelper
|
76
|
+
include IframeHelper
|
77
77
|
|
78
78
|
end
|
79
79
|
end
|
@@ -5,28 +5,28 @@ module Cello
|
|
5
5
|
include LogHelper
|
6
6
|
|
7
7
|
define_method "#{name}_get_options" do
|
8
|
-
logger(name, __method__, :select) {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
8
|
+
# logger(name, __method__, :select) {
|
9
|
+
options = Array.new
|
10
|
+
send(name).options.each do |option|
|
11
|
+
options.push option.text
|
12
|
+
end
|
13
|
+
options
|
14
|
+
#}
|
15
15
|
end
|
16
16
|
define_method "#{name}_select" do |option|
|
17
|
-
logger(name, __method__, :select) {
|
18
|
-
|
19
|
-
}
|
17
|
+
#logger(name, __method__, :select) {
|
18
|
+
send(name).select option
|
19
|
+
#}
|
20
20
|
end
|
21
21
|
define_method "#{name}_is" do |option|
|
22
|
-
logger(name, __method__, :select) {
|
23
|
-
|
24
|
-
}
|
22
|
+
#logger(name, __method__, :select) {
|
23
|
+
send(name).selected_options.last.text == option
|
24
|
+
#}
|
25
25
|
end
|
26
26
|
define_method "#{name}_selected" do
|
27
|
-
logger(name, __method__, :select) {
|
28
|
-
|
29
|
-
}
|
27
|
+
#logger(name, __method__, :select) {
|
28
|
+
send(name).selected_options.last.text
|
29
|
+
#}
|
30
30
|
end
|
31
31
|
# define_method "#{name}_clear" do
|
32
32
|
# send(name).clear
|
data/lib/cello/version.rb
CHANGED