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