title: How to locate a particular image in watir?
body: <pre><code>[1] pry(main)&gt; require 'watir-webdriver'
  =&gt; true
  [2] pry(main)&gt; browser = Watir::Browser.new
  =&gt; #&lt;Watir::Browser:0x61b0b0e094c1512a url="about:blank" title=""&gt;
  [3] pry(main)&gt; browser.goto 'm.racingnetwork.com.au'
  =&gt; "http://m.racingnetwork.com.au/"
  [4] pry(main)&gt; browser.frames.size
  =&gt; 0
  [5] pry(main)&gt; browser.imgs.size
  =&gt; 12
  [6] pry(main)&gt; x = browser.imgs[0].src
  =&gt; "http://m.racingnetwork.com.au/mobile-telstra-racingnetwork-production/theme/img/bpBannerSportLogo_170.png"
  [7] pry(main)&gt; browser.img(:src, x).exist?
  =&gt; false
  [8] pry(main)&gt; browser.img(:src, /mobile/).exist?
  =&gt; false
  [9] pry(main)&gt; browwer.img.exist?
  =&gt; true
  [10] pry(main)&gt; browser.img.id
  =&gt; ""
  </code></pre>
  
  <p>Why can't I access that image, do I have some syntax error in my locator?  </p>
  
  <p>Unfortunately I don't have any better locators like element ids in this case.  The last time I had a problem with Watir not being able to find elements, it was due to frames, but here we aren't in any frames.  </p>