Sha256: 4d69a0d8eb697f071a8a0883eb1b427c404226df60a5e516c03511b45050c765
Contents?: true
Size: 931 Bytes
Versions: 3
Compression:
Stored size: 931 Bytes
Contents
# feature tests for IE#send_keys # revision: $Revision: 1177 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') if $0 == __FILE__ require 'unittests/setup' class TC_Fields < Test::Unit::TestCase include Watir def setup $ie.goto($htmlRoot + "textfields1.html") end def test_tabbing $ie.text_field(:name, 'text1').focus $ie.send_keys('{tab}') $ie.send_keys('Scooby') assert('Scooby', $ie.text_field(:name, 'beforetest').value) end def test_enter $ie.text_field(:name, 'text1').focus $ie.send_keys('{tab}{tab}{tab}{tab}{tab}') $ie.send_keys('Dooby{enter}') sleep 0.2 assert($ie.text.include?('PASS')) end def test_autoregistration Watir::_unregister('AutoItX3.dll') assert_raises(WIN32OLERuntimeError) { WIN32OLE.new('AutoItX3.Control') } assert_nothing_raised { $ie.send_keys('{tab}') } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-1.5.2 | unittests/windows/send_keys_test.rb |
watir-1.5.3 | unittests/windows/send_keys_test.rb |
watir-1.5.4 | unittests/windows/send_keys_test.rb |