Permalink
Browse files

Watir::Browser is now a class and not a module.

  • Loading branch information...
1 parent 26e2509 commit b50a713c04bcffd3df67cc6c8c86a8958c288276 @jarmo jarmo committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/watir-classic/browser.rb
@@ -51,7 +51,7 @@ module Watir
=end rdoc
- module Browser
+ class Browser
@haoruiqian

haoruiqian Aug 6, 2013

So there are two classes using same name Watir::Browser exist in both watir and watir-classic? If I installed both of them, and require 'watir' in my code, then invoke Watir::Browser.new, it will throw a superclass not match exception, so I need un-install watir.
Why two classes using one name, is there any difference between them? Which gem should I use, watir or watir-classic?

@jarmo

jarmo Aug 6, 2013

Owner

Show us the code, which throws an error for you. It should not throw any errors when you just require "watir". If you do Watir::Browser.new then the appropriate library is loaded watir-classic or watir-webdriver but never both. I can see that you're getting that problem if you try to monkey-patch.

@@browser_classes = {}
@@sub_options = {}
@@default = nil

0 comments on commit b50a713

Please sign in to comment.