lib/firewatir.rb in firewatir-1.6.2 vs lib/firewatir.rb in firewatir-1.6.5
- old
+ new
@@ -1,50 +1,40 @@
-=begin
- license
- ---------------------------------------------------------------------------
- Copyright (c) 2004 - 2005, Paul Rogers and Bret Pettichord
- Copyright (c) 2006 - 2007, Angrez Singh
- Copyright (c) 2008, Bret Pettichord
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- 3. Neither the names Angrez Singh nor the names of contributors to
- this software may be used to endorse or promote products derived from this
- software without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
- IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- --------------------------------------------------------------------------
- (based on BSD Open Source License)
-=end
-
-require 'socket'
-
-require 'firewatir/exceptions'
-require 'firewatir/container'
-require 'firewatir/MozillaBaseElement'
-require 'firewatir/htmlelements'
-require 'watir/matches'
-require 'firewatir/firefox'
-require 'firewatir/version'
-require 'watir'
-
-# this only has an effect if firewatir is required before anyone invokes
-# Browser.new. Thus it has no effect when Browser.new itself autoloads this library.
-Watir::Browser.default = 'firefox'
+$:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
+
+require 'socket'
+require 'active_support'
+
+require 'firewatir/exceptions'
+require 'firewatir/jssh_socket'
+require 'firewatir/container'
+require "firewatir/element"
+require "firewatir/document"
+
+require "firewatir/elements/form"
+require "firewatir/elements/frame"
+require "firewatir/elements/non_control_element"
+require "firewatir/elements/non_control_elements"
+require "firewatir/elements/table"
+require "firewatir/elements/table_row"
+require "firewatir/elements/table_cell"
+require "firewatir/elements/image"
+require "firewatir/elements/link"
+require "firewatir/elements/input_element"
+require "firewatir/elements/select_list"
+require "firewatir/elements/option"
+require "firewatir/elements/button"
+require "firewatir/elements/text_field"
+require "firewatir/elements/hidden"
+require "firewatir/elements/file_field"
+require "firewatir/elements/radio_check_common"
+require "firewatir/element_collections"
+
+require 'watir/matches'
+require 'firewatir/firefox'
+require 'firewatir/version'
+require 'watir'
+
+
+
+# this only has an effect if firewatir is required before anyone invokes
+# Browser.new. Thus it has no effect when Browser.new itself autoloads this library.
+Watir::Browser.default = 'firefox'