l-Satz

Posts Tagged ‘watir

[Watir] visiblity of elements in Window

Posted by: sathyz on: February 15, 2008

To test if an item is visible or not,
require ‘watir/contrib/visible’
puts ‘Ya.. Its present’ if element.visible?
say, browser.link(:text,’Save’).visible?
Note that, this works only if the element exists.
Blogged with Flock

Tags: rubywatir

Tags: ,