Remove debug.

This commit is contained in:
Martin Edenhofer 2014-12-09 22:22:31 +01:00
parent 5852bcb142
commit 93ac78e8e9

View file

@ -268,7 +268,6 @@ class TestCase < Test::Unit::TestCase
element = instance.find_elements( { :css => action[:area] } )[0] element = instance.find_elements( { :css => action[:area] } )[0]
if element #&& element.displayed? if element #&& element.displayed?
text = instance.find_elements( { :css => action[:area] } )[0].text text = instance.find_elements( { :css => action[:area] } )[0].text
puts "T /#{text.inspect}/#{action[:value].inspect}/"
if text =~ /#{action[:value]}/i if text =~ /#{action[:value]}/i
assert( true, "(#{test[:name]}) '#{action[:value]}' found in '#{text}'" ) assert( true, "(#{test[:name]}) '#{action[:value]}' found in '#{text}'" )
return return
@ -283,20 +282,16 @@ class TestCase < Test::Unit::TestCase
if action[:timeout] if action[:timeout]
timeout = action[:timeout] timeout = action[:timeout]
end end
puts 1
loops = (timeout / 2).to_i loops = (timeout / 2).to_i
text = '' text = ''
(1..loops).each { |loop| (1..loops).each { |loop|
puts 2
element = instance.find_elements( { :css => action[:area] } )[0] element = instance.find_elements( { :css => action[:area] } )[0]
if !element #|| element.displayed? if !element #|| element.displayed?
assert( true, "(#{test[:name]}) not found" ) assert( true, "(#{test[:name]}) not found" )
sleep 0.2 sleep 0.2
puts 33
return return
end end
sleep 2 sleep 2
puts 22
} }
assert( false, "(#{test[:name]} / #{test[:area]}) still exsists" ) assert( false, "(#{test[:name]} / #{test[:area]}) still exsists" )
return return