Let the code do the talking :
~~~ require 'watir' module Watir class FieldElement < InputElement # Some code end end # Getting uninitilazed constant Watir::InputElement how come? ~~~ Same for : ~~~ require 'watir' Watir.driver = :classic Watir.load_driver module Watir class FieldElement < InputElement # Some code end end ~~~~ Then, the below code works, after Watir::Browser.new module Watir will be loaded. ~~~ require 'watir' browser = Watir::Browser.new module Watir class FieldElement < InputElement # Some code end end ~~~ So, is there a way to extend the class before `Watir::Browser.new` :question: --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir/issues/6
_______________________________________________ Wtr-development mailing list Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development