Okay, this one's a head-scratcher...

Environment:
- Windows 7
- Ruby 1.9.2
- Watir-webdriver 0.2.5

Goal:
I've got a page with a list of links, from A to Z, and I need my script to 
iterate through each of those links.

Here's my code:
#===================
chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

0.upto(chars.length - 1) do |x|

  3.times do
     $ff.link(:text, chars[x]).flash
     sleep 1
  end

  $ff.link(:text, chars[x]).click
  <now do other irrelevant stuff here>

end
#====================

What happens:

The script goes to every letter EXCEPT the letter B.  The link for the 
letter B *flashes*, mind you, but, inexplicably, the click never happens. 
The click for A happens. The click for C happens. Same for D, E, F, etc. 
 Just not the letter B.

Weird, huh?

-- 
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]

Reply via email to