Sha256: d1c457cf1a1f123513b3aae76567d8afe2f3166ade863113790d5fb3621e030d

Contents?: true

Size: 975 Bytes

Versions: 8

Compression:

Stored size: 975 Bytes

Contents

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

class TC_No_Wait_Commands < Test::Unit::TestCase
  def test_fire_event_no_wait
    goto_page "javascriptevents.html"
    browser.link(:text, "Check the Status").fire_event_no_wait("onMouseOver")
    assert_nothing_raised{
      Watir::Wait.until {browser.status == "It worked"}
    }
  end

  def test_set_no_wait_text_field
    goto_page "textfields1.html"
    browser.text_field(:name, "text1").set_no_wait("watir IE Controller")
    assert_nothing_raised{
      Watir::Wait.until {browser.text_field(:name, "text1").value == "watir IE Controller"}
    }
  end

  def test_set_no_wait_text_select_list
    goto_page "selectboxes1.html"
    browser.select_list(:name,'sel1').set_no_wait(/Option 1/)
    assert_nothing_raised{
      Watir::Wait.until {browser.select_list(:name , 'sel1').selected_options.first == 'Option 1'}
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
watir-1.9.0 unittests/no_wait_test.rb
watir-1.9.0.rc7 unittests/no_wait_test.rb
watir-1.9.0.rc6 unittests/no_wait_test.rb
watir-1.9.0.rc5 unittests/no_wait_test.rb
watir-1.9.0.rc4 unittests/no_wait_test.rb
watir-1.9.0.rc3 unittests/no_wait_test.rb
watir-1.9.0.rc2 unittests/no_wait_test.rb
watir-1.9.0.rc1 unittests/no_wait_test.rb