This is how to do it: irb(main):001:0> require "watir" => true irb(main):002:0> Watir::IE.version # returns IE version => "9.0.8112.16421" irb(main):003:0> Watir::VERSION # returns Watir-classic version => "3.0.0"
If you're using at least 3.x, then you can also check out watir container gem version: irb(main):004:0> Watir::BUNDLE_VERSION => "3.0.0" You can always use regular Ruby features too: irb(main):019:0> puts $LOAD_PATH.grep(/watir-/)[0].scan(/-(\d.*)\/lib/ 3.0.0 => nil Jarmo Pertman ----- IT does really matter - http://itreallymatters.net On Wednesday, August 1, 2012 12:59:40 PM UTC+3, Željko Filipin wrote: > > On Wed, Aug 1, 2012 at 11:54 AM, leder wrote: > > I think it is correct: version (not in Caps) puts: > > C:\Source.Ruby\Watir\BudgetTool> ruby -e 'require "watir"; puts > Watir::IE::versi > > on' > > 8.0.7601.17514egroups.com > > This looks like IE, not Watir version. > > Željko > -- 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]
