Sha256: 676c3c84ec43b6553a9aff305f13a1cc67972b21ab761ee16e9fc63c1e02b26f
Contents?: true
Size: 818 Bytes
Versions: 2
Compression:
Stored size: 818 Bytes
Contents
# feature tests for relative navigation/specification $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED require 'unittests/setup' class TC_Relative < Test::Unit::TestCase def setup goto_page "depot_store.html" @headline = browser.h3(:text, 'Pragmatic Version Control') end tag_method :test_parent, :fails_on_firefox def test_parent catalog_entry = @headline.parent link = catalog_entry.link(:class, 'addtocart') assert_equal 'http://localhost:3000/store/add_to_cart/12', link.href assert_nothing_raised{link.click} end tag_method :test_parent_page_container, :fails_on_firefox def test_parent_page_container catalog_entry = @headline.parent assert_not_nil catalog_entry.page_container end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
watir-classic-3.0.0 | unittests/parent_child_test.rb |
watir-3.0.0.rc3 | unittests/parent_child_test.rb |