watir/watir_meta

Driver library needs to be loaded before executing any of the real methods.

jarmo opened this issue · 2 comments

Problem with current solution is that for example #start, #attach and any other Watir class methods are not accessible because watir-webdriver or watir-classic is loaded in #new. It seems that the loading should be done by #method_missing or by any other means to fix these problems.

Fixed in watir/watir@43d3b63 and in version 4.0.1.

I'm observing similar behavior using
gems/watir-classic-4.1.0/lib/watir-classic/browser.rb:116:in method_missing': (in OLE methodWindows': ) (WIN32OLERuntimeError)

require 'watir-classic'
b = Watir::Browser.attach(:title, //)

same with require 'watir'