Is there a way to see if an img has a src defined. (src not constant, 
varies and unknown)
So far i  have this: 

And(/^the results should display an image row$/) do
 b1 = @browser.ul(:id => 'list').lis
 puts("No list: #{@month}") if b1.count == 0
 b1.each do |image|
   flag = image.image(:src => 'http://ola.com/*/*.jpg').exists?
   puts("No image for the item: #{image.td(:class => 'result_value_name')}") 
unless flag
 end
end

But i know that would not work with the *. I did that only as a placeholder 
because they change by rows and are randomly named. 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to