Remove debug.
This commit is contained in:
parent
5852bcb142
commit
93ac78e8e9
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue