Hi All,
In my script I need to add a comment to a discussion. In order to
submit the comment I need to click the text_field first to get the
event to fire to display the Submit button. I have add a click method
for that text_field though it doesn't get the buttons to display. If
I add a break right after the click event the button displays.
Code:
#Click window
$browser.div(:id,'discussion-board').click
#Click in the comment field
$browser.li(:id,'add-new-
comment').text_field(:id,new_id).fire_event("click")
#break
#Add a comment to discussion
$browser.li(:id,'add-new-comment').text_field(:id,new_id).set rt #"Got
it done"
I can't figure out how to get this to work.
Any help would be greatly appreciated
Joe
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]