Sha256: 201438a765471631057c9aa733418033cf36055957e790089715b220d88024e7

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'

class ClickNoWait_Tests < Watir::TestCase

  def setup
    goto_page 'click_no_wait.html'
  end

  def test_click_no_wait
    message_div = browser.div(:id => 'div1')
    assert_equal("nothing", message_div.text)
    browser.link(:id => 'link1').click_no_wait
    assert_equal("message!", message_div.text)
  end

  def test_spawned_click_no_wait_command
    assert_equal("start rubyw -e \"some command\"", browser.page_container.send(:__spawned_click_no_wait_command, "some command"))
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-1.6.6.rc1 unittests/click_no_wait_test.rb