From: Darin Duphorn Date: 2008-02-09T08:07:36+09:00 Subject: How do I get the popup text using watir I need to get the text to verify the correct popup appeared I also need to verify the button I want to click exist on the popup Below is the code. #Click Button $ie.button($attribute_nm.to_sym,$attribute_val).click_no_wait dialog = Watir::Dialog.new puts dialog # Need to be able to poll window to exist sleep 0.4 if dialog.exists? ?how can I get the dialog text? if dialog.button(:name,"OK").exists? ?How can I validate OK exist on dialog? dialog.button('OK').click #click OK button else dialog.close #close if button doesn't exist end end Thanks, DD -- Posted via http://www.ruby-forum.com/.