Well just for example, the fact that 1.4.1 does not support the css className
attribute really stinks, and then if I use the work around I've found/come up
with, which is to get the ole object for, say an image, then query it directly
for its className (which works in 1.4.1) then I upgrade to 1.5, I get errors
saying that I can't do that in the same way.
Here's my 1.4.1 sub-script:
@watirBrowser.watir.images.each {
|img| tempImage = img
tempOLEObj = tempImage.getOLEObject
# Find the right image to click on
if tempOLEObj.invoke("className").to_s == "btn_viewResults"
# Timeout after 45 seconds to relinquish time over to
the other procs
begin
timeout(45) do
tempImage.click
end # End: timeout(45) do
rescue TimeoutError
@botLogger.log(VL.INFO, "Timed
out after 45 seconds on strEnterZipCode", @logginMode)
end
break
end # End: if tempImage.class_name == "btn_viewResults"
}
This will NOT work on Watir 1.5
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6315&messageID=17845#17845
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general