unittests/google_form_test.rb in watir-1.5.6 vs unittests/google_form_test.rb in watir-1.6.2
- old
+ new
@@ -1,16 +1,16 @@
# defect report from users of Watir Recorder
# revision: $Revision: 746 $
-$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'
class TC_GoogleForm < Test::Unit::TestCase
def setup
goto_page "google_india.html"
end
def test_it
- $ie.form( :name, "f").text_field( :name, "q").set("ruby")
+ browser.form(:name, "f").text_field(:name, "q").set("ruby")
end
end
\ No newline at end of file