Sha256: dcc97283fe6afb63571ebb5bbc87e6ee6270371ffa53a500af2237908cffd8dd
Contents?: true
Size: 983 Bytes
Versions: 3
Compression:
Stored size: 983 Bytes
Contents
# feature tests for IE#send_keys # revision: $Revision$ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', '..') unless $SETUP_LOADED require 'unittests/setup' class TC_SendKeys < Test::Unit::TestCase def setup goto_page "textfields1.html" end def test_tabbing browser.text_field(:name, 'text1').focus browser.send_keys('{tab}') browser.send_keys('Scooby') assert('Scooby', browser.text_field(:name, 'beforetest').value) end def test_enter browser.text_field(:name, 'text1').focus browser.send_keys('{tab}{tab}{tab}{tab}{tab}') browser.send_keys('Dooby{enter}') sleep 0.2 assert(browser.text.include?('PASS')) end tag_method :test_autoregistration, :fails_on_ie def test_autoregistration Watir::_unregister('AutoItX3.dll') assert_raises(WIN32OLERuntimeError) { WIN32OLE.new('AutoItX3.Control') } assert_nothing_raised { browser.send_keys('{tab}') } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
watir-1.6.6 | unittests/windows/send_keys_test.rb |
watir-1.6.6.rc2 | unittests/windows/send_keys_test.rb |
watir-1.6.6.rc1 | unittests/windows/send_keys_test.rb |