OK - after much more research it turns out that the problem is not that it cant
determine that the link is there... when this happened I decided to do a puts
$browser.text.scan. Surprisngly, it contained the text from the previous
screen and that explains why it can't see the link.
Adding this text:
while not ($browser.link(:text,"Withdraw").exists?)
sleep 1
$browser.reload()
end
solves the problem, although rather kludgy.
1.) Is there a better way for me to do this?
2.) Since Firewatir uses .reload and Watir uses .refresh, how do I write my
script to handle both? Is there a way to determine what $browser is at run
time?
Thanks,
Steven
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6415&messageID=18539#18539
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general