Sha256: ab3966b5ba2970c91dd32c6e4c605e480bddece45922496f5df2b7a947b939e2
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
# feature tests for TextArea Fields # revision: $Revision: 1.3 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__ require 'unittests/setup' class TC_FileField < Test::Unit::TestCase include Watir def gotoPage() $ie.goto($htmlRoot + "fileupload.html") end def test_fileField_Exists gotoPage() #test for existance of 4 file area assert($ie.fileField(:name,"file1").exists?) assert($ie.fileField(:id,"file2").exists?) #test for missing assert_false($ie.fileField(:name, "missing").exists?) assert_false($ie.fileField(:name,"totallybogus").exists?) #pop one open and put something in it. $ie.fileField(:name,"file1").set($htmlRoot + "fileupload.html") #click the upload button $ie.button(:name,"upload").click assert($ie.contains_text("PASS")) end def test_iterator gotoPage() assert_equal(6, $ie.file_fields.length) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
watir-1.4.1 | unittests/filefield_test.rb |