Sha256: 9897d60f6e2c451bf7fd2a6388d935fe1a50befefa8d5fb00286f6f2ddab5448
Contents?: true
Size: 863 Bytes
Versions: 4
Compression:
Stored size: 863 Bytes
Contents
# defect reproduction # revision: $Revision: 958 $ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED require 'unittests/setup' class TC_Divs_XPath2 < Test::Unit::TestCase def setup goto_page "list_matters.html" end def test_div_with_text # Note: this test fails, probably because of bad html to xml translation. # However... the same xpath expression finds the right object in Selenium! assert_equal('Add', browser.div(:xpath, "//div[text()='Add' and @class='ButtonText']").text) end def test_div_with_contains # Note: this test fails, probably because of bad html to xml translation. # However... the same xpath expression finds the right object in Selenium! assert_equal('Add', browser.div(:xpath, "//div[contains(.,'Add') and @class='ButtonText']").text) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
watir-1.6.6 | unittests/div2_xpath_test.rb |
watir-1.6.6.rc2 | unittests/div2_xpath_test.rb |
watir-1.6.6.rc1 | unittests/div2_xpath_test.rb |
watir-1.6.2 | unittests/div2_xpath_test.rb |