Sha256: 53dda8e1317060a409bc645d21ebf581248dde1a6837f92c4acae54c2ccd00c6
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 KB
Contents
# feature tests for Javascript redirect # revision: $Revision: 1.0 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED require 'unittests/setup' class TC_Redirect < Test::Unit::TestCase def setup goto_page("redirect.html") end def goto_multiple_redirect goto_page("redirect1.html") end tag_method :test_single_redirect, :fails_on_ie def test_single_redirect assert_raises(UnknownObjectException) {browser.div(:id , "div77").click } assert_raises(UnknownObjectException) {browser.div(:title , "div77").click } assert(browser.text_field(:name, "text1").verify_contains("0") ) browser.div(:id , "div3").click assert(browser.text_field(:name, "text1").verify_contains("1") ) browser.div(:id , "div4").click assert(browser.text_field(:name, "text1").verify_contains("0") ) end tag_method :test_multiple_redirect, :fails_on_ie def test_multiple_redirect goto_multiple_redirect() assert_raises(UnknownObjectException) {browser.div(:id , "div77").click } assert_raises(UnknownObjectException) {browser.div(:title , "div77").click } assert(browser.text_field(:name, "text1").verify_contains("0") ) browser.div(:id , "div3").click assert(browser.text_field(:name, "text1").verify_contains("1") ) browser.div(:id , "div4").click assert(browser.text_field(:name, "text1").verify_contains("0") ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
firewatir-1.6.6 | unittests/redirect_test.rb |
firewatir-1.6.6.rc2 | unittests/redirect_test.rb |
firewatir-1.6.6.rc1 | unittests/redirect_test.rb |
firewatir-1.6.2 | unittests/redirect_test.rb |