I have cases where selecting a value from a select_list should cause
the page to refresh based on the value selected. When I select a value
with a watir, does not seem to cause this page refresh. I am testing
with Oracle ADF pages, so I put up a little demo using the Oracle ADF
demo. I have the sleep in the code to show, that when I select the
value by hand, while the watir test is running, the test passes. But
if I leave watir only if fails
-----------------------------------------------------------
# test select list with Oracle ADF
require 'rubygems'
require 'watir'
require 'watir/testcase'
require 'test/unit'
class TestSelectList < Watir::TestCase
def test_oracle_one_choice
test_site = "http://jdevadf.oracle.com/adf-richclient-demo/faces/
components/selectOneChoice.jspx"
ie = Watir::IE.new
puts "Beginning of test"
ie.goto test_site
ie.select_list(:id, "demoTemplate:j_id_id68::content").set
("fatal")
# put a sleep here, so that I can test with intervention
sleep 5
fatal_xpath = "//div/table/tbody/tr/td[2]/table/tbody/tr/td/div/
div/div/div/table/tbody/tr/td[2]"
message = ie.span(:xpath,fatal_xpath).text
expected_message = "Critical Error: Fatal message SUMMARY text."
puts "message ="+message
assert(message.eql?(expected_message))
end
end
---------------------------------------------------------------------------
Any help with a work around on this would be appreciated.
Thanks
Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---