lib/cello/pageobjects/html_elements/element_helper.rb in cello-0.0.25 vs lib/cello/pageobjects/html_elements/element_helper.rb in cello-0.0.26
- old
+ new
@@ -18,63 +18,63 @@
end
end
def define_extras(name, type)
- include LogHelper
-
+ #include LogHelper
+
define_method "#{name}_exit_wait?" do
- send(name).visible?
+ send(name).visible?
end
define_method "#{name}_is_enable?" do
- logger(name, __method__, type) {
- send(name).enabled?
- }
+ #logger(name, __method__, type) {
+ send(name).enabled?
+ #}
end
define_method "#{name}_is_real?" do
- logger(name, __method__, type, "Foo") {
- send(name).exists?
- }
+ #logger(name, __method__, type, "Foo") {
+ send(name).exists?
+ #}
end
define_method "#{name}_click" do
- logger(name, __method__, type) {
- send(name).click
- }
+ #logger(name, __method__, type) {
+ send(name).click
+ #}
end
define_method "#{name}_is_visible?" do
- logger(name, __method__, type) {
- send(name).visible?
- }
+ #logger(name, __method__, type) {
+ send(name).visible?
+ #}
end
define_method "#{name}_right_click" do
- logger(name, __method__, type) {
- send(name).right_click
- }
+ #logger(name, __method__, type) {
+ send(name).right_click
+ #}
end
define_method "#{name}_get" do |att|
- logger(name, __method__, type) {
- send(name).attribute_value(att)
- }
+ #logger(name, __method__, type) {
+ send(name).attribute_value(att)
+ #}
end
method_name = "define_extras_for_#{type}"
send(method_name, name) if respond_to? method_name
end
-
- include CheckboxHelper
- include TextfieldHelper
- include TextareaHelper
- include SelectHelper
- include DivHelper
- include RadioHelper
- include LinkHelper
- include ButtonHelper
- include SpanHelper
- include HiddenHelper
- include IframeHelper
+
+ include CheckboxHelper
+ include TextfieldHelper
+ include TextareaHelper
+ include SelectHelper
+ include DivHelper
+ include RadioHelper
+ include LinkHelper
+ include ButtonHelper
+ include SpanHelper
+ include HiddenHelper
+ include IframeHelper
end
end
end