Sha256: 96ecca6b1c5904674b6cac4437b70abbbda41cd0d30528b26dae312502d6c358
Contents?: true
Size: 898 Bytes
Versions: 2
Compression:
Stored size: 898 Bytes
Contents
# feature tests for IE#send_keys # revision: $Revision: 1348 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') if $0 == __FILE__ require 'unittests/setup' class TC_Fields < Test::Unit::TestCase def setup goto_page "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir-1.5.6 | unittests/windows/send_keys_test.rb |
watir-1.5.5 | unittests/windows/send_keys_test.rb |