Sha256: 0e3ef3d5031b7e3ed3287a8c0870cc094683b31363c778f391664ebf74041758

Contents?: true

Size: 692 Bytes

Versions: 24

Compression:

Stored size: 692 Bytes

Contents

# feature tests for IE#send_keys

$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
  
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/windows/send_keys_test.rb
watir-3.0.0.rc3 unittests/windows/send_keys_test.rb
watir-3.0.0.rc2 unittests/windows/send_keys_test.rb
watir-3.0.0.rc1 unittests/windows/send_keys_test.rb
watir-2.0.4 unittests/windows/send_keys_test.rb
watir-2.0.3 unittests/windows/send_keys_test.rb
watir-2.0.2 unittests/windows/send_keys_test.rb
watir-2.0.2.rc1 unittests/windows/send_keys_test.rb
watir-2.0.1 unittests/windows/send_keys_test.rb
watir-2.0.0 unittests/windows/send_keys_test.rb
watir-2.0.0.rc3 unittests/windows/send_keys_test.rb
watir-2.0.0.rc2 unittests/windows/send_keys_test.rb
watir-1.9.2 unittests/windows/send_keys_test.rb
watir-1.9.2.rc1 unittests/windows/send_keys_test.rb
watir-1.9.1 unittests/windows/send_keys_test.rb
watir-1.9.1.rc1 unittests/windows/send_keys_test.rb
watir-1.9.0 unittests/windows/send_keys_test.rb
watir-1.9.0.rc7 unittests/windows/send_keys_test.rb
watir-1.9.0.rc6 unittests/windows/send_keys_test.rb
watir-1.9.0.rc5 unittests/windows/send_keys_test.rb